diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-06-01 18:44:56 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-07-07 23:44:40 +0900 |
commit | aaaf378033f889408155a902349c676429b85254 (patch) | |
tree | 2adaae48af3e2f3a5f7be528880efcf06c9f1202 /tdeprint/foomatic2loader.cpp | |
parent | bf683427937ea0cfd90749b833456377de6ffa10 (diff) | |
download | tdelibs-aaaf378033f889408155a902349c676429b85254.tar.gz tdelibs-aaaf378033f889408155a902349c676429b85254.zip |
Adjusted to use new TQStringVariantMap type.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeprint/foomatic2loader.cpp')
-rw-r--r-- | tdeprint/foomatic2loader.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tdeprint/foomatic2loader.cpp b/tdeprint/foomatic2loader.cpp index 0d0637c90..c498477fd 100644 --- a/tdeprint/foomatic2loader.cpp +++ b/tdeprint/foomatic2loader.cpp @@ -67,7 +67,7 @@ bool Foomatic2Loader::readFromBuffer( const TQString& buffer ) return false; } -DrBase* Foomatic2Loader::createValue( const TQString& name, const TQMap<TQString,TQVariant>& m ) const +DrBase* Foomatic2Loader::createValue( const TQString& name, const TQStringVariantMap& m ) const { DrBase *choice = new DrBase; choice->setName( name ); @@ -75,7 +75,7 @@ DrBase* Foomatic2Loader::createValue( const TQString& name, const TQMap<TQString return choice; } -DrBase* Foomatic2Loader::createOption( const TQMap<TQString,TQVariant>& m ) const +DrBase* Foomatic2Loader::createOption( const TQStringVariantMap& m ) const { TQString type = m.operator[]( "type" ).toString(); DrBase *opt = NULL; @@ -83,7 +83,7 @@ DrBase* Foomatic2Loader::createOption( const TQMap<TQString,TQVariant>& m ) cons { DrListOption *lopt = new DrListOption; TQVariant a = m.operator[]( "vals_byname" ); - TQMap<TQString,TQVariant>::ConstIterator it = a.mapBegin(); + TQStringVariantMap::ConstIterator it = a.mapBegin(); for ( ; it!=a.mapEnd(); ++it ) { if ( it.data().type() != TQVariant::Map ) @@ -183,7 +183,7 @@ DrMain* Foomatic2Loader::buildDriver() const TQRegExp re( "(\\d+) +(\\d+)" ); if ( choices.type() == TQVariant::Map ) { - TQMap<TQString,TQVariant>::ConstIterator it = choices.mapBegin(); + TQStringVariantMap::ConstIterator it = choices.mapBegin(); for ( ; it!=choices.mapEnd(); ++it ) { TQString driverval = ( *it ).mapFind( "driverval" ).data().toString(); @@ -234,7 +234,7 @@ DrMain* Foomatic2Loader::modifyDriver( DrMain *driver ) const v = V.mapFind( "args_byname" ).data(); if ( !v.isNull() && v.type() == TQVariant::Map ) { - TQMap<TQString,TQVariant>::ConstIterator it = v.mapBegin(); + TQStringVariantMap::ConstIterator it = v.mapBegin(); for ( ; it!=v.mapEnd(); ++it ) { if ( ( *it ).type() != TQVariant::Map ) |