diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:19:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:25:49 +0200 |
commit | 4b9573ba669173d0d0d7653c9bcef276ec151cec (patch) | |
tree | 1cf5d6b8f648ccbb7b4a63d92bf160725511c7a3 /scripting/source/provider | |
parent | 67187c14175778b7939692d6be6e8bab2930be1b (diff) |
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: Ic3e7658ccfd23fa29af46eac971deac5a0373377
Diffstat (limited to 'scripting/source/provider')
-rw-r--r-- | scripting/source/provider/BrowseNodeFactoryImpl.cxx | 8 | ||||
-rw-r--r-- | scripting/source/provider/MasterScriptProvider.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/scripting/source/provider/BrowseNodeFactoryImpl.cxx b/scripting/source/provider/BrowseNodeFactoryImpl.cxx index e0833497d8b1..e8d61bdb3198 100644 --- a/scripting/source/provider/BrowseNodeFactoryImpl.cxx +++ b/scripting/source/provider/BrowseNodeFactoryImpl.cxx @@ -134,7 +134,7 @@ public: { if ( m_Nodes[ i ]->hasChildNodes() ) { - return sal_True; + return true; } } catch ( Exception& ) @@ -145,7 +145,7 @@ public: } } - return sal_False; + return false; } virtual sal_Int16 SAL_CALL getType() @@ -229,7 +229,7 @@ public: virtual sal_Bool SAL_CALL hasChildNodes() throw ( RuntimeException, std::exception ) override { - return sal_True; + return true; } virtual sal_Int16 SAL_CALL getType() @@ -634,7 +634,7 @@ public: virtual sal_Bool SAL_CALL hasChildNodes() throw ( RuntimeException, std::exception ) override { - return sal_True; // will always be user and share + return true; // will always be user and share } virtual sal_Int16 SAL_CALL getType() diff --git a/scripting/source/provider/MasterScriptProvider.cxx b/scripting/source/provider/MasterScriptProvider.cxx index 695480c4238e..df823d8c5fa0 100644 --- a/scripting/source/provider/MasterScriptProvider.cxx +++ b/scripting/source/provider/MasterScriptProvider.cxx @@ -449,7 +449,7 @@ sal_Bool SAL_CALL MasterScriptProvider::hasChildNodes() throw ( css::uno::RuntimeException, std::exception ) { - return sal_True; + return true; } |