2021-02-06 Fred Gleason <fredg@paravelsystems.com>

* Removed 'Q3TextStream' dependencies from 'RDProfile'.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-02-06 10:09:15 -05:00
parent 331855d64f
commit 79e1f4f196
2 changed files with 8 additions and 6 deletions

View File

@ -21030,3 +21030,5 @@
* Removed 'Q3TextStream' dependencies from rmlsend(1).
2021-02-06 Fred Gleason <fredg@paravelsystems.com>
* Removed 'Q3SocketDevice' dependencies from rdsoftkeys(1).
2021-02-06 Fred Gleason <fredg@paravelsystems.com>
* Removed 'Q3TextStream' dependencies from 'RDProfile'.

View File

@ -2,7 +2,7 @@
//
// A class to read an ini formatted configuration file.
//
// (C) Copyright 2002-2018 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2021 Fred Gleason <fredg@paravelsystems.com>
//
// 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 <qfile.h>
#include <qstringlist.h>
#include <q3textstream.h>
#include <QFile>
#include <QStringList>
#include <QTextStream>
#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)=="]")) {