summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dcop/client/marshall.cpp2
-rw-r--r--tdecore/kdcoppropertyproxy.cpp2
-rw-r--r--tdecore/tdeconfigbase.cpp2
-rw-r--r--tdecore/tdeconfigskeleton.cpp2
-rw-r--r--tdehtml/ecma/kjs_binding.cpp2
-rw-r--r--tdehtml/ecma/kjs_debugwin.cpp2
-rw-r--r--tdeio/tdeio/kmimetype.cpp2
-rw-r--r--tdeio/tdeio/kservice.cpp2
8 files changed, 8 insertions, 8 deletions
diff --git a/dcop/client/marshall.cpp b/dcop/client/marshall.cpp
index 354ad03e8..efdb76bfc 100644
--- a/dcop/client/marshall.cpp
+++ b/dcop/client/marshall.cpp
@@ -339,7 +339,7 @@ void marshall( TQDataStream &arg, QCStringList args, uint &i, TQString type )
int tqRectKeywordLength = strlen(TQRECT_OBJECT_NAME_STRING);
int tqColorKeywordLength = strlen(TQCOLOR_OBJECT_NAME_STRING);
if ( s == "true" || s == "false" ) {
- arg << TQVariant( mkBool( s ), 42 );
+ arg << TQVariant( mkBool( s ) );
}
else if ( s.left( 4 ) == "int(" ) {
arg << TQVariant( s.mid(4, s.length()-5).toInt() );
diff --git a/tdecore/kdcoppropertyproxy.cpp b/tdecore/kdcoppropertyproxy.cpp
index 24bf6768b..663644b50 100644
--- a/tdecore/kdcoppropertyproxy.cpp
+++ b/tdecore/kdcoppropertyproxy.cpp
@@ -230,7 +230,7 @@ bool KDCOPPropertyProxy::processPropertyRequest( const TQCString &fun, const TQB
{
TQ_INT8 v;
stream >> v;
- prop = TQVariant( static_cast<bool>( v ), 1 );
+ prop = TQVariant( static_cast<bool>( v ) );
}
break;
DEMARSHAL( Double, double )
diff --git a/tdecore/tdeconfigbase.cpp b/tdecore/tdeconfigbase.cpp
index e8d384dbe..1e8310a74 100644
--- a/tdecore/tdeconfigbase.cpp
+++ b/tdecore/tdeconfigbase.cpp
@@ -417,7 +417,7 @@ TQVariant TDEConfigBase::readPropertyEntry( const char *pKey,
case TQVariant::ULongLong:
return TQVariant( readUnsignedNum64Entry( pKey, aDefault.toULongLong() ) );
case TQVariant::Bool:
- return TQVariant( readBoolEntry( pKey, aDefault.toBool() ), 0 );
+ return TQVariant( readBoolEntry( pKey, aDefault.toBool() ) );
case TQVariant::Double:
return TQVariant( readDoubleNumEntry( pKey, aDefault.toDouble() ) );
case TQVariant::DateTime:
diff --git a/tdecore/tdeconfigskeleton.cpp b/tdecore/tdeconfigskeleton.cpp
index 4a389f3fe..03dac6156 100644
--- a/tdecore/tdeconfigskeleton.cpp
+++ b/tdecore/tdeconfigskeleton.cpp
@@ -161,7 +161,7 @@ void TDEConfigSkeleton::ItemBool::setProperty(const TQVariant & p)
TQVariant TDEConfigSkeleton::ItemBool::property() const
{
- return TQVariant( mReference, 42 /* dummy */ );
+ return TQVariant( mReference );
}
diff --git a/tdehtml/ecma/kjs_binding.cpp b/tdehtml/ecma/kjs_binding.cpp
index d9f0b7b25..7e545a5a4 100644
--- a/tdehtml/ecma/kjs_binding.cpp
+++ b/tdehtml/ecma/kjs_binding.cpp
@@ -328,7 +328,7 @@ TQVariant KJS::ValueToVariant(ExecState* exec, const Value &val) {
TQVariant res;
switch (val.type()) {
case BooleanType:
- res = TQVariant(val.toBoolean(exec), 0);
+ res = TQVariant(val.toBoolean(exec));
break;
case NumberType:
res = TQVariant(val.toNumber(exec));
diff --git a/tdehtml/ecma/kjs_debugwin.cpp b/tdehtml/ecma/kjs_debugwin.cpp
index df2e24d37..2e08f5ea8 100644
--- a/tdehtml/ecma/kjs_debugwin.cpp
+++ b/tdehtml/ecma/kjs_debugwin.cpp
@@ -862,7 +862,7 @@ bool KJSDebugWin::exception(ExecState *exec, const Value &value, bool inTryCatch
if (dontShowAgain) {
TDEConfig *config = kapp->config();
TDEConfigGroupSaver saver(config,TQString::fromLatin1("Java/JavaScript Settings"));
- config->writeEntry("ReportJavaScriptErrors",TQVariant(false,0));
+ config->writeEntry("ReportJavaScriptErrors",TQVariant(false));
config->sync();
TQByteArray data;
kapp->dcopClient()->send( "konqueror*", "KonquerorIface", "reparseConfiguration()", data );
diff --git a/tdeio/tdeio/kmimetype.cpp b/tdeio/tdeio/kmimetype.cpp
index 197670916..0dd96cb6d 100644
--- a/tdeio/tdeio/kmimetype.cpp
+++ b/tdeio/tdeio/kmimetype.cpp
@@ -388,7 +388,7 @@ void KMimeType::init( KDesktopFile * config )
// Read the X-TDE-AutoEmbed setting and store it in the properties map
TQString XKDEAutoEmbed = TQString::fromLatin1("X-TDE-AutoEmbed");
if ( config->hasKey( XKDEAutoEmbed ) )
- m_mapProps.insert( XKDEAutoEmbed, TQVariant( config->readBoolEntry( XKDEAutoEmbed ), 0 ) );
+ m_mapProps.insert( XKDEAutoEmbed, TQVariant( config->readBoolEntry( XKDEAutoEmbed ) ) );
TQString XKDEText = TQString::fromLatin1("X-TDE-text");
if ( config->hasKey( XKDEText ) )
diff --git a/tdeio/tdeio/kservice.cpp b/tdeio/tdeio/kservice.cpp
index f0c114e77..b059d2375 100644
--- a/tdeio/tdeio/kservice.cpp
+++ b/tdeio/tdeio/kservice.cpp
@@ -620,7 +620,7 @@ TQVariant KService::property( const TQString& _name, TQVariant::Type t ) const
}
if (t == TQVariant::Bool)
{
- return TQVariant((bool)val, 1);
+ return TQVariant((bool)val);
}
return TQVariant(val);
}