diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-05-24 12:02:07 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2019-05-24 12:02:07 +0900 |
commit | 352c8f6a2190a65107a30c42230b67018fc5625f (patch) | |
tree | b8cc3b8b315387deb5c3428ce89a4e2e5da217d6 /tdecore | |
parent | 080948356f99f601ae4328ca01867547a412a376 (diff) | |
download | tdelibs-352c8f6a2190a65107a30c42230b67018fc5625f.tar.gz tdelibs-352c8f6a2190a65107a30c42230b67018fc5625f.zip |
Adjusted to latest TQVariant::TQVariant(bool) function.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdecore')
-rw-r--r-- | tdecore/kdcoppropertyproxy.cpp | 2 | ||||
-rw-r--r-- | tdecore/tdeconfigbase.cpp | 2 | ||||
-rw-r--r-- | tdecore/tdeconfigskeleton.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
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 ); } |