summaryrefslogtreecommitdiff
path: root/basic/source/uno/namecont.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-20 17:14:08 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-20 17:25:35 +0200
commitda50c790a74af391cd46e20dbb457e975894b9cf (patch)
tree544fcd5488c544775d666116953cdbe9e9339f07 /basic/source/uno/namecont.cxx
parent6546ed8c7948841f147c3848acccc8defbe9997a (diff)
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: Ib91f20761167ab78b68813d8877dceea5fef801f
Diffstat (limited to 'basic/source/uno/namecont.cxx')
-rw-r--r--basic/source/uno/namecont.cxx16
1 files changed, 8 insertions, 8 deletions
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& )