summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:33:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:28 +0200
commit2ac33c984efa405f73a23748687df73ce461b630 (patch)
treea3ccad901955e70dc4ec5ce709dc50e60f97cefa /starmath
parentf98ef646e462db3ee7c7242f6b288c5fc2d05a78 (diff)
loplugin:simplifybool
Change-Id: Iea7d0e2e8440e8780067e5a51072b6ab9a72b8ab
Diffstat (limited to 'starmath')
-rw-r--r--starmath/inc/parse.hxx2
-rw-r--r--starmath/source/mathmlexport.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/starmath/inc/parse.hxx b/starmath/inc/parse.hxx
index 0ff2afee1d9d..fc40be80e4ca 100644
--- a/starmath/inc/parse.hxx
+++ b/starmath/inc/parse.hxx
@@ -128,7 +128,7 @@ public:
inline bool SmParser::TokenInGroup( sal_uLong nGroup)
{
- return (m_aCurToken.nGroup & nGroup) ? true : false;
+ return (m_aCurToken.nGroup & nGroup) != 0;
}
diff --git a/starmath/source/mathmlexport.cxx b/starmath/source/mathmlexport.cxx
index ff30bff74a95..809e46712465 100644
--- a/starmath/source/mathmlexport.cxx
+++ b/starmath/source/mathmlexport.cxx
@@ -302,7 +302,7 @@ bool SmXMLExportWrapper::WriteThroughComponent(
SmXMLExport *pFilter = reinterpret_cast< SmXMLExport * >(
sal::static_int_cast< sal_uIntPtr >(
xFilterTunnel->getSomething( SmXMLExport::getUnoTunnelId() )));
- return pFilter ? pFilter->GetSuccess() : true;
+ return pFilter == nullptr || pFilter->GetSuccess();
}