Browse Source

Adjusted to latest TQVariant::TQVariant(bool) function.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/34/head
Michele Calgaro 3 weeks ago
parent
commit
352c8f6a21
Signed by: Michele Calgaro <michele.calgaro@yahoo.it> GPG Key ID: 2A75B7CA8ADED5CF

+ 1
- 1
dcop/client/marshall.cpp View File

@@ -339,7 +339,7 @@ void marshall( TQDataStream &arg, QCStringList args, uint &i, TQString type )
339 339
 	int tqRectKeywordLength = strlen(TQRECT_OBJECT_NAME_STRING);
340 340
 	int tqColorKeywordLength = strlen(TQCOLOR_OBJECT_NAME_STRING);
341 341
 	if ( s == "true" || s == "false" ) {
342
-	    arg << TQVariant( mkBool( s ), 42 );
342
+	    arg << TQVariant( mkBool( s ) );
343 343
 	}
344 344
 	else if ( s.left( 4 ) == "int(" ) {
345 345
 	    arg << TQVariant( s.mid(4, s.length()-5).toInt() );

+ 1
- 1
tdecore/kdcoppropertyproxy.cpp View File

@@ -230,7 +230,7 @@ bool KDCOPPropertyProxy::processPropertyRequest( const TQCString &fun, const TQB
230 230
       {
231 231
         TQ_INT8 v;
232 232
         stream >> v;
233
-        prop = TQVariant( static_cast<bool>( v ), 1 );
233
+        prop = TQVariant( static_cast<bool>( v ) );
234 234
       }
235 235
         break;
236 236
       DEMARSHAL( Double, double )

+ 1
- 1
tdecore/tdeconfigbase.cpp View File

@@ -417,7 +417,7 @@ TQVariant TDEConfigBase::readPropertyEntry( const char *pKey,
417 417
       case TQVariant::ULongLong:
418 418
           return TQVariant( readUnsignedNum64Entry( pKey, aDefault.toULongLong() ) );
419 419
       case TQVariant::Bool:
420
-          return TQVariant( readBoolEntry( pKey, aDefault.toBool() ), 0 );
420
+          return TQVariant( readBoolEntry( pKey, aDefault.toBool() ) );
421 421
       case TQVariant::Double:
422 422
           return TQVariant( readDoubleNumEntry( pKey, aDefault.toDouble() ) );
423 423
       case TQVariant::DateTime:

+ 1
- 1
tdecore/tdeconfigskeleton.cpp View File

@@ -161,7 +161,7 @@ void TDEConfigSkeleton::ItemBool::setProperty(const TQVariant & p)
161 161
 
162 162
 TQVariant TDEConfigSkeleton::ItemBool::property() const
163 163
 {
164
-  return TQVariant( mReference, 42 /* dummy */ );
164
+  return TQVariant( mReference );
165 165
 }
166 166
 
167 167
 

+ 1
- 1
tdehtml/ecma/kjs_binding.cpp View File

@@ -328,7 +328,7 @@ TQVariant KJS::ValueToVariant(ExecState* exec, const Value &val) {
328 328
   TQVariant res;
329 329
   switch (val.type()) {
330 330
   case BooleanType:
331
-    res = TQVariant(val.toBoolean(exec), 0);
331
+    res = TQVariant(val.toBoolean(exec));
332 332
     break;
333 333
   case NumberType:
334 334
     res = TQVariant(val.toNumber(exec));

+ 1
- 1
tdehtml/ecma/kjs_debugwin.cpp View File

@@ -862,7 +862,7 @@ bool KJSDebugWin::exception(ExecState *exec, const Value &value, bool inTryCatch
862 862
   if (dontShowAgain) {
863 863
     TDEConfig *config = kapp->config();
864 864
     TDEConfigGroupSaver saver(config,TQString::fromLatin1("Java/JavaScript Settings"));
865
-    config->writeEntry("ReportJavaScriptErrors",TQVariant(false,0));
865
+    config->writeEntry("ReportJavaScriptErrors",TQVariant(false));
866 866
     config->sync();
867 867
     TQByteArray data;
868 868
     kapp->dcopClient()->send( "konqueror*", "KonquerorIface", "reparseConfiguration()", data );

+ 1
- 1
tdeio/tdeio/kmimetype.cpp View File

@@ -388,7 +388,7 @@ void KMimeType::init( KDesktopFile * config )
388 388
   // Read the X-TDE-AutoEmbed setting and store it in the properties map
389 389
   TQString XKDEAutoEmbed = TQString::fromLatin1("X-TDE-AutoEmbed");
390 390
   if ( config->hasKey( XKDEAutoEmbed ) )
391
-    m_mapProps.insert( XKDEAutoEmbed, TQVariant( config->readBoolEntry( XKDEAutoEmbed ), 0 ) );
391
+    m_mapProps.insert( XKDEAutoEmbed, TQVariant( config->readBoolEntry( XKDEAutoEmbed ) ) );
392 392
 
393 393
   TQString XKDEText = TQString::fromLatin1("X-TDE-text");
394 394
   if ( config->hasKey( XKDEText ) )

+ 1
- 1
tdeio/tdeio/kservice.cpp View File

@@ -620,7 +620,7 @@ TQVariant KService::property( const TQString& _name, TQVariant::Type t ) const
620 620
            }
621 621
            if (t == TQVariant::Bool)
622 622
            {
623
-               return TQVariant((bool)val, 1);
623
+               return TQVariant((bool)val);
624 624
            }
625 625
            return TQVariant(val);
626 626
         }

Loading…
Cancel
Save