summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-04-20 17:19:48 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-04-20 17:27:25 +0200
commit88338ed6291f3552b583f539f1588984ec188e56 (patch)
treefdc8fdc6b882c2165183773167a4a6205addd1d5 /starmath
parent9a10b6f1ffc9f9331c3bb55c1ac2a70828ee14bb (diff)
loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: Iae070e04800fec430f630dad1cd4265c1717a59d
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/accessibility.cxx4
-rw-r--r--starmath/source/mathmlexport.cxx2
-rw-r--r--starmath/source/unomodel.cxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index b7daa9eb5473..fc3a9444b85a 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -447,7 +447,7 @@ sal_Bool SAL_CALL SmGraphicAccessible::setCaretPosition( sal_Int32 nIndex )
OUString aTxt( GetAccessibleText_Impl() );
if (!(nIndex < aTxt.getLength()))
throw IndexOutOfBoundsException();
- return sal_False;
+ return false;
}
sal_Unicode SAL_CALL SmGraphicAccessible::getCharacter( sal_Int32 nIndex )
@@ -644,7 +644,7 @@ sal_Bool SAL_CALL SmGraphicAccessible::setSelection(
if (!(0 <= nStartIndex && nStartIndex < nLen) ||
!(0 <= nEndIndex && nEndIndex < nLen))
throw IndexOutOfBoundsException();
- return sal_False;
+ return false;
}
OUString SAL_CALL SmGraphicAccessible::getText()
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index 3bb91d9f43db..8f9e96856541 100644
--- a/starmath/source/mathmlexport.cxx
+++ b/starmath/source/mathmlexport.cxx
@@ -337,7 +337,7 @@ bool SmXMLExportWrapper::WriteThroughComponent(
// all streams must be encrypted in encrypted document
OUString aTmpPropName( "UseCommonStoragePasswordEncryption" );
- sal_Bool bTrue = sal_True;
+ sal_Bool bTrue = true;
aAny.setValue( &bTrue, cppu::UnoType<bool>::get() );
xSet->setPropertyValue( aTmpPropName, aAny );
diff --git a/starmath/source/unomodel.cxx b/starmath/source/unomodel.cxx
index 28dd2e558e7a..d0b066fbd0a7 100644
--- a/starmath/source/unomodel.cxx
+++ b/starmath/source/unomodel.cxx
@@ -145,7 +145,7 @@ SmPrintUIOptions::SmPrintUIOptions()
Sequence< PropertyValue > aHintNoLayoutPage( 1 );
aHintNoLayoutPage[0].Name = "HintNoLayoutPage";
- aHintNoLayoutPage[0].Value = makeAny( sal_True );
+ aHintNoLayoutPage[0].Value = makeAny( true );
m_aUIProperties[nIdx++].Value <<= aHintNoLayoutPage;
assert(nIdx == nNumProps);