summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-04-24 12:33:56 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-04-24 12:36:29 +0200
commit746a717ed4648cd6c0d0d810a90a6539373b130c (patch)
treea1a2b3a3df4f968ccc98423a5b163d4b366b4c16 /sw/inc
parent24df2bd5cb68f8de5e22a27f6a3505d099bc3581 (diff)
loplugin:simplifybool
Change-Id: Ic90d247e6c8e36e27ff444ace10fd37e06d46b50
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/calbck.hxx2
-rw-r--r--sw/inc/ndtxt.hxx2
-rw-r--r--sw/inc/printdata.hxx2
3 files changed, 3 insertions, 3 deletions
diff --git a/sw/inc/calbck.hxx b/sw/inc/calbck.hxx
index ab91b51faadd..a27b7e9abe88 100644
--- a/sw/inc/calbck.hxx
+++ b/sw/inc/calbck.hxx
@@ -224,7 +224,7 @@ public:
/** get Client information */
virtual bool GetInfo( SfxPoolItem& rInfo) const SAL_OVERRIDE
- { return m_pToTell ? m_pToTell->GetInfo( rInfo ) : true; }
+ { return m_pToTell == nullptr || m_pToTell->GetInfo( rInfo ); }
protected:
virtual void Modify( const SfxPoolItem* pOldValue, const SfxPoolItem *pNewValue ) SAL_OVERRIDE
{
diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx
index 3973cb37af46..e186da7aaedd 100644
--- a/sw/inc/ndtxt.hxx
+++ b/sw/inc/ndtxt.hxx
@@ -223,7 +223,7 @@ public:
inline const SwpHints &GetSwpHints() const;
inline SwpHints *GetpSwpHints() { return m_pSwpHints; }
inline const SwpHints *GetpSwpHints() const { return m_pSwpHints; }
- inline bool HasHints() const { return m_pSwpHints ? true : false; }
+ inline bool HasHints() const { return m_pSwpHints != nullptr; }
inline SwpHints &GetOrCreateSwpHints();
virtual ~SwTxtNode();
diff --git a/sw/inc/printdata.hxx b/sw/inc/printdata.hxx
index eed52d0a881f..11e1945d77dd 100644
--- a/sw/inc/printdata.hxx
+++ b/sw/inc/printdata.hxx
@@ -184,7 +184,7 @@ public:
bool IsPrintFormControls() const { return getBoolValue( "PrintControls", m_rDefaultPrintData.bPrintControl ); }
bool IsPrintPageBackground() const { return getBoolValue( "PrintPageBackground", m_rDefaultPrintData.bPrintPageBackground ); }
bool IsPrintProspect() const { return getBoolValue( "PrintProspect", m_rDefaultPrintData.bPrintProspect ); }
- bool IsPrintProspectRTL() const { return getIntValue( "PrintProspectRTL", m_rDefaultPrintData.bPrintProspectRTL ? 1 : 0 ) ? true : false; }
+ bool IsPrintProspectRTL() const { return getIntValue( "PrintProspectRTL", m_rDefaultPrintData.bPrintProspectRTL ? 1 : 0 ) != 0; }
bool IsPrintTextPlaceholders() const { return getBoolValue( "PrintTextPlaceholder", m_rDefaultPrintData.bPrintTextPlaceholder ); }
bool IsPrintHiddenText() const { return getBoolValue( "PrintHiddenText", m_rDefaultPrintData.bPrintHiddenText ); }
bool IsPrintWithBlackTextColor() const { return getBoolValue( "PrintBlackFonts", m_rDefaultPrintData.bPrintBlackFont ); }