diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:14:08 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-20 17:25:35 +0200 |
commit | da50c790a74af391cd46e20dbb457e975894b9cf (patch) | |
tree | 544fcd5488c544775d666116953cdbe9e9339f07 /basic | |
parent | 6546ed8c7948841f147c3848acccc8defbe9997a (diff) |
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: Ib91f20761167ab78b68813d8877dceea5fef801f
Diffstat (limited to 'basic')
-rw-r--r-- | basic/source/basmgr/basicmanagerrepository.cxx | 4 | ||||
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 4 | ||||
-rw-r--r-- | basic/source/classes/sbxmod.cxx | 2 | ||||
-rw-r--r-- | basic/source/uno/dlgcont.cxx | 2 | ||||
-rw-r--r-- | basic/source/uno/namecont.cxx | 16 | ||||
-rw-r--r-- | basic/source/uno/scriptcont.cxx | 2 |
6 files changed, 15 insertions, 15 deletions
diff --git a/basic/source/basmgr/basicmanagerrepository.cxx b/basic/source/basmgr/basicmanagerrepository.cxx index 21e248a46ea7..35c965bf3e07 100644 --- a/basic/source/basmgr/basicmanagerrepository.cxx +++ b/basic/source/basmgr/basicmanagerrepository.cxx @@ -474,8 +474,8 @@ namespace basic // #i104876: Library container must not be modified just after // creation. This happens as side effect when creating default // "Standard" libraries and needs to be corrected here - xBasicLibs->setModified( sal_False ); - xDialogLibs->setModified( sal_False ); + xBasicLibs->setModified( false ); + xDialogLibs->setModified( false ); } diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index a39697d1d933..5c475d2584a5 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -4390,12 +4390,12 @@ Any SAL_CALL ModuleInvocationProxy::getValue(const OUString& rProperty) sal_Bool SAL_CALL ModuleInvocationProxy::hasMethod( const OUString& ) throw(std::exception) { - return sal_False; + return false; } sal_Bool SAL_CALL ModuleInvocationProxy::hasProperty( const OUString& ) throw(std::exception) { - return sal_False; + return false; } Any SAL_CALL ModuleInvocationProxy::invoke( const OUString& rFunction, diff --git a/basic/source/classes/sbxmod.cxx b/basic/source/classes/sbxmod.cxx index e8b54d7cf214..85ae94f3f33c 100644 --- a/basic/source/classes/sbxmod.cxx +++ b/basic/source/classes/sbxmod.cxx @@ -357,7 +357,7 @@ sal_Bool SAL_CALL DocObjectWrapper::hasMethod( const OUString& aName ) throw (RuntimeException, std::exception) { if ( m_xAggInv.is() && m_xAggInv->hasMethod( aName ) ) - return sal_True; + return true; return getMethod( aName ).Is(); } diff --git a/basic/source/uno/dlgcont.cxx b/basic/source/uno/dlgcont.cxx index b5b20fff5578..2a8684e494bb 100644 --- a/basic/source/uno/dlgcont.cxx +++ b/basic/source/uno/dlgcont.cxx @@ -443,7 +443,7 @@ void SfxDialogLibraryContainer::onNewRootStorage() sal_Bool SAL_CALL SfxDialogLibraryContainer:: HasExecutableCode( const OUString& /*Library*/ ) throw (uno::RuntimeException, std::exception) { - return sal_False; // dialog library has no executable code + return false; // dialog library has no executable code } // Service diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx index 45d35f0af727..1d766f64af66 100644 --- a/basic/source/uno/namecont.cxx +++ b/basic/source/uno/namecont.cxx @@ -492,7 +492,7 @@ sal_Bool SfxLibraryContainer::isModified() LibraryContainerMethodGuard aGuard( *this ); if ( maModifiable.isModified() ) { - return sal_True; + return true; } // the library container is not modified, go through the libraries and check whether they are modified Sequence< OUString > aNames = maNameContainer->getElementNames(); @@ -513,11 +513,11 @@ sal_Bool SfxLibraryContainer::isModified() // empty standard library should stay marked as modified // but should not be treated as modified while it is empty if ( pImplLib->hasElements() ) - return sal_True; + return true; } else { - return sal_True; + return true; } } } @@ -526,7 +526,7 @@ sal_Bool SfxLibraryContainer::isModified() } } - return sal_False; + return false; } void SAL_CALL SfxLibraryContainer::setModified( sal_Bool _bModified ) @@ -1462,7 +1462,7 @@ void SfxLibraryContainer::implStoreLibrary( SfxLibrary* pLib, xProps->setPropertyValue("MediaType", uno::makeAny( aMime ) ); // #87671 Allow encryption - xProps->setPropertyValue("UseCommonStoragePasswordEncryption", uno::makeAny( sal_True ) ); + xProps->setPropertyValue("UseCommonStoragePasswordEncryption", uno::makeAny( true ) ); Reference< XOutputStream > xOutput = xElementStream->getOutputStream(); Reference< XNameContainer > xLib( pLib ); @@ -1602,7 +1602,7 @@ void SfxLibraryContainer::implStoreLibraryIndexFile( SfxLibrary* pLib, xProps->setPropertyValue("MediaType", uno::makeAny( aMime ) ); // #87671 Allow encryption - xProps->setPropertyValue("UseCommonStoragePasswordEncryption", uno::makeAny( sal_True ) ); + xProps->setPropertyValue("UseCommonStoragePasswordEncryption", uno::makeAny( true ) ); xOut = xInfoStream->getOutputStream(); } @@ -2126,7 +2126,7 @@ void SfxLibraryContainer::storeLibraries_Impl( const uno::Reference< embed::XSto xProps->setPropertyValue("MediaType", uno::makeAny( aMime ) ); // #87671 Allow encryption - xProps->setPropertyValue("UseCommonStoragePasswordEncryption", uno::makeAny( sal_True ) ); + xProps->setPropertyValue("UseCommonStoragePasswordEncryption", uno::makeAny( true ) ); xOut = xInfoStream->getOutputStream(); } @@ -2796,7 +2796,7 @@ sal_Bool SAL_CALL SfxLibraryContainer::isLibraryPasswordProtected( const OUStrin throw (NoSuchElementException, RuntimeException, std::exception) { LibraryContainerMethodGuard aGuard( *this ); - return sal_False; + return false; } sal_Bool SAL_CALL SfxLibraryContainer::isLibraryPasswordVerified( const OUString& ) diff --git a/basic/source/uno/scriptcont.cxx b/basic/source/uno/scriptcont.cxx index 64fdfe0fa0d2..974047196b1a 100644 --- a/basic/source/uno/scriptcont.cxx +++ b/basic/source/uno/scriptcont.cxx @@ -1166,7 +1166,7 @@ sal_Bool SAL_CALL SfxScriptLibraryContainer:: HasExecutableCode( const OUString& return pBasicMgr->HasExeCode( Library ); // need to change this to take name } // default to it has code if we can't decide - return sal_True; + return true; } |