mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-20 15:02:27 +02:00
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:
parent
331855d64f
commit
79e1f4f196
@ -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'.
|
||||
|
@ -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)=="]")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user