diff --git a/ChangeLog b/ChangeLog index 7d2952db..71dcc774 100644 --- a/ChangeLog +++ b/ChangeLog @@ -21030,3 +21030,5 @@ * Removed 'Q3TextStream' dependencies from rmlsend(1). 2021-02-06 Fred Gleason * Removed 'Q3SocketDevice' dependencies from rdsoftkeys(1). +2021-02-06 Fred Gleason + * Removed 'Q3TextStream' dependencies from 'RDProfile'. diff --git a/lib/rdprofile.cpp b/lib/rdprofile.cpp index 689a57eb..e5fb860e 100644 --- a/lib/rdprofile.cpp +++ b/lib/rdprofile.cpp @@ -2,7 +2,7 @@ // // A class to read an ini formatted configuration file. // -// (C) Copyright 2002-2018 Fred Gleason +// (C) Copyright 2002-2021 Fred Gleason // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU Library General Public License @@ -18,9 +18,9 @@ // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // -#include -#include -#include +#include +#include +#include #include "rdprofile.h" @@ -137,8 +137,8 @@ bool RDProfile::setSource(const QString &filename) delete file; return false; } - Q3TextStream *text=new Q3TextStream(file); - QString line=text->readLine().stripWhiteSpace(); + QTextStream *text=new QTextStream(file); + QString line=text->readLine().trimmed(); while(!line.isNull()) { if((line.left(1)!=";")&&(line.left(1)!="#")) { if((line.left(1)=="[")&&(line.right(1)=="]")) {