summaryrefslogtreecommitdiffstats
path: root/certmanager
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-05-26 15:16:13 +0200
committerSlávek Banko <slavek.banko@axis.cz>2019-05-26 15:16:13 +0200
commit00c81d9763b2df158ecd2bcccecb77b902f6962e (patch)
treedc980c07a1a20d62c4125d57aed1752c70c13e31 /certmanager
parentf007b524fba622c4a33e0e3e1d657c7712f3e2a9 (diff)
downloadtdepim-00c81d9763b2df158ecd2bcccecb77b902f6962e.tar.gz
tdepim-00c81d9763b2df158ecd2bcccecb77b902f6962e.zip
Adjusted to latest TQVariant::TQVariant(bool) function.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'certmanager')
-rw-r--r--certmanager/lib/backends/chiasmus/chiasmusbackend.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/certmanager/lib/backends/chiasmus/chiasmusbackend.cpp b/certmanager/lib/backends/chiasmus/chiasmusbackend.cpp
index 7ed31197d..c37e5a826 100644
--- a/certmanager/lib/backends/chiasmus/chiasmusbackend.cpp
+++ b/certmanager/lib/backends/chiasmus/chiasmusbackend.cpp
@@ -127,7 +127,7 @@ namespace {
// some special types:
template <> struct from_helper<bool> : public TQVariant {
- from_helper( bool b ) : TQVariant( b, int() ) {}
+ from_helper( bool b ) : TQVariant( b ) {}
};
template <> struct from_helper<KURL> : public TQVariant {
from_helper( const KURL & url ) : TQVariant( url.path() ) {}
@@ -180,7 +180,7 @@ namespace {
if ( argType() != ArgType_Path && argType()!= ArgType_DirPath ) return mValue.toStringList();
else return to<KURL::List>( mValue ); }
void resetToDefault() { mValue = defaultValue(); mDirty = false; }
- void setBoolValue( bool value ) { setValue( TQVariant( value, int() ) ); }
+ void setBoolValue( bool value ) { setValue( TQVariant( value ) ); }
void setStringValue( const TQString & value ) { setValue( value ); }
void setIntValue( int value ) { setValue( value ); }
void setUIntValue( unsigned int value ) { setValue( value ); }
@@ -219,9 +219,9 @@ namespace {
return TQVariant();
case ArgType_None:
if ( isList() )
- return TQValueList<TQVariant>() << TQVariant( data.defaults.boolean.value, int() );
+ return TQValueList<TQVariant>() << TQVariant( data.defaults.boolean.value );
else
- return TQVariant( data.defaults.boolean.value, int() );
+ return TQVariant( data.defaults.boolean.value );
case ArgType_String:
if ( isList() )
return TQStringList( TQString::fromLatin1( data.defaults.string ) );