summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-27 16:08:24 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-28 10:21:01 +0200
commite19cd844be171097dddf6319a037b7503ad2c922 (patch)
tree64ed67787f118d2b97036cc687242002e7bda5ce /basic
parentd0e9aa6a2b07cb183dd7f8b06399b28f67588a83 (diff)
Rephrase comparisons between bool and sal_Bool
...to cater for forthcoming loplugin:implicitboolconversion improvements Change-Id: I801b6b73648715448198d582a087cc834f6e20c8
Diffstat (limited to 'basic')
-rw-r--r--basic/source/uno/namecont.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/uno/namecont.cxx b/basic/source/uno/namecont.cxx
index 8b6510e49d30..ab47f0146db2 100644
--- a/basic/source/uno/namecont.cxx
+++ b/basic/source/uno/namecont.cxx
@@ -2553,7 +2553,7 @@ void SAL_CALL SfxLibraryContainer::setLibraryReadOnly( const OUString& Name, sal
SfxLibrary* pImplLib = getImplLib( Name );
if( pImplLib->mbLink )
{
- if( (pImplLib->mbReadOnlyLink ? 1 : 0) != bReadOnly )
+ if( pImplLib->mbReadOnlyLink != bool(bReadOnly) )
{
pImplLib->mbReadOnlyLink = bReadOnly;
pImplLib->implSetModified( true );
@@ -2562,7 +2562,7 @@ void SAL_CALL SfxLibraryContainer::setLibraryReadOnly( const OUString& Name, sal
}
else
{
- if( (pImplLib->mbReadOnly ? 1 : 0) != bReadOnly )
+ if( pImplLib->mbReadOnly != bool(bReadOnly) )
{
pImplLib->mbReadOnly = bReadOnly;
pImplLib->implSetModified( true );