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 /tdeio | |
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 'tdeio')
-rw-r--r-- | tdeio/tdeio/kmimetype.cpp | 2 | ||||
-rw-r--r-- | tdeio/tdeio/kservice.cpp | 2 |
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); } |