1.1 --- a/settings.cpp Wed Sep 06 12:47:06 2006 +0000
1.2 +++ b/settings.cpp Wed Sep 06 12:47:06 2006 +0000
1.3 @@ -96,7 +96,7 @@
1.4 return def;
1.5 }
1.6
1.7 -int SimpleSettings::readNumEntry (const QString &key, int def)
1.8 +int SimpleSettings::readNumEntry (const QString &key, const int &def)
1.9 {
1.10 QStringList::Iterator itk=keylist.begin();
1.11 QStringList::Iterator itv=valuelist.begin();
2.1 --- a/settings.h Wed Sep 06 12:47:06 2006 +0000
2.2 +++ b/settings.h Wed Sep 06 12:47:06 2006 +0000
2.3 @@ -19,7 +19,7 @@
2.4 void readSettings(const QString &);
2.5 void writeSettings(const QString &);
2.6 QString readEntry (const QString &key, const QString &def=QString());
2.7 - int readNumEntry (const QString &, int=0);
2.8 + int readNumEntry (const QString &, const int &def=0);
2.9 void setEntry (const QString &,const QString &);
2.10 private:
2.11 QStringList keylist;