summaryrefslogtreecommitdiffstats
path: root/tdeio
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-05-24 12:02:07 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-05-24 12:02:07 +0900
commit352c8f6a2190a65107a30c42230b67018fc5625f (patch)
treeb8cc3b8b315387deb5c3428ce89a4e2e5da217d6 /tdeio
parent080948356f99f601ae4328ca01867547a412a376 (diff)
downloadtdelibs-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 'tdeio')
-rw-r--r--tdeio/tdeio/kmimetype.cpp2
-rw-r--r--tdeio/tdeio/kservice.cpp2
2 files changed, 2 insertions, 2 deletions
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);
}