From 00c81d9763b2df158ecd2bcccecb77b902f6962e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 26 May 2019 15:16:13 +0200 Subject: Adjusted to latest TQVariant::TQVariant(bool) function. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- certmanager/lib/backends/chiasmus/chiasmusbackend.cpp | 8 ++++---- tderesources/blogging/API_Blogger.cpp | 6 +++--- tderesources/egroupware/kcal_resourcexmlrpc.cpp | 2 +- tderesources/egroupware/tdeabc_resourcexmlrpc.cpp | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/certmanager/lib/backends/chiasmus/chiasmusbackend.cpp b/certmanager/lib/backends/chiasmus/chiasmusbackend.cpp index 7ed31197..c37e5a82 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 : public TQVariant { - from_helper( bool b ) : TQVariant( b, int() ) {} + from_helper( bool b ) : TQVariant( b ) {} }; template <> struct from_helper : 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( 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( data.defaults.boolean.value, int() ); + return TQValueList() << 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 ) ); diff --git a/tderesources/blogging/API_Blogger.cpp b/tderesources/blogging/API_Blogger.cpp index 69a722e2..984cc378 100644 --- a/tderesources/blogging/API_Blogger.cpp +++ b/tderesources/blogging/API_Blogger.cpp @@ -100,7 +100,7 @@ TDEIO::TransferJob *APIBlogger::createUploadJob( const KURL &url, KBlog::BlogPos kdDebug() << "Uploading Posting with url " << url.url() << endl; TQValueList args( defaultArgs( posting->postID() ) ); args << TQVariant( posting->content() ); - args << TQVariant( /*publish=*/true, 0 ); + args << TQVariant( /*publish=*/true ); return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerEditPost ), args, false ); // } else { // warningNotInitialized(); @@ -118,7 +118,7 @@ TDEIO::TransferJob *APIBlogger::createUploadNewJob( KBlog::BlogPosting *posting kdDebug() << "Creating new Posting with blogid " << posting->blogID() << " at url " << mServerURL << endl; TQValueList args( defaultArgs( posting->blogID() ) ); args << TQVariant( posting->content() ); - args << TQVariant( /*publish=*/true, 0 ); + args << TQVariant( /*publish=*/true ); return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerNewPost ), args, false ); // } else { // warningNotInitialized(); @@ -131,7 +131,7 @@ TDEIO::Job *APIBlogger::createRemoveJob( const KURL &/*url*/, const TQString &po kdDebug() << "APIBlogger::createRemoveJob: postid=" << postid << endl; // if ( isValid() ){ TQValueList args( defaultArgs( postid ) ); - args << TQVariant( /*publish=*/true, 0 ); + args << TQVariant( /*publish=*/true ); return TDEIO::xmlrpcCall( mServerURL, getFunctionName( bloggerDeletePost ), args, false ); // } else { // warningNotInitialized(); diff --git a/tderesources/egroupware/kcal_resourcexmlrpc.cpp b/tderesources/egroupware/kcal_resourcexmlrpc.cpp index 7ce11dd9..319c8979 100644 --- a/tderesources/egroupware/kcal_resourcexmlrpc.cpp +++ b/tderesources/egroupware/kcal_resourcexmlrpc.cpp @@ -260,7 +260,7 @@ bool ResourceXMLRPC::doLoad() this, TQT_SLOT( loadEventCategoriesFinished( const TQValueList&, const TQVariant& ) ), this, TQT_SLOT( fault( int, const TQString&, const TQVariant& ) ) ); - mServer->call( LoadTodoCategoriesCommand, TQVariant( false, 0 ), + mServer->call( LoadTodoCategoriesCommand, TQVariant( false ), this, TQT_SLOT( loadTodoCategoriesFinished( const TQValueList&, const TQVariant& ) ), this, TQT_SLOT( fault( int, const TQString&, const TQVariant& ) ) ); return true; diff --git a/tderesources/egroupware/tdeabc_resourcexmlrpc.cpp b/tderesources/egroupware/tdeabc_resourcexmlrpc.cpp index 1929bd19..5f92d1c5 100644 --- a/tderesources/egroupware/tdeabc_resourcexmlrpc.cpp +++ b/tderesources/egroupware/tdeabc_resourcexmlrpc.cpp @@ -208,7 +208,7 @@ bool ResourceXMLRPC::asyncLoad() this, TQT_SLOT( listContactsFinished( const TQValueList&, const TQVariant& ) ), this, TQT_SLOT( fault( int, const TQString&, const TQVariant& ) ) ); - mServer->call( LoadCategoriesCommand, TQVariant( false, 0 ), + mServer->call( LoadCategoriesCommand, TQVariant( false ), this, TQT_SLOT( loadCategoriesFinished( const TQValueList&, const TQVariant& ) ), this, TQT_SLOT( fault( int, const TQString&, const TQVariant& ) ) ); -- cgit v1.2.3