summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-01 14:21:06 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-02 07:14:20 +0000
commit5e7cf50756232b08964dfb15d027697b4eba004f (patch)
tree6dd2019c2945b1cd55d7663f30789c9a1db90617 /sw/inc
parentfd3d1bbaa9ab338f374fd20798fca71a888c9ab7 (diff)
SetXXX(bool) with a default value of false are just wrong
Change-Id: I4888d0474199bb10ca81d1ad03118a150f574671 Reviewed-on: https://gerrit.libreoffice.org/18235 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/fmtcol.hxx4
-rw-r--r--sw/inc/format.hxx6
-rw-r--r--sw/inc/shellio.hxx2
3 files changed, 6 insertions, 6 deletions
diff --git a/sw/inc/fmtcol.hxx b/sw/inc/fmtcol.hxx
index cd1431f4607b..65ffe3901cf3 100644
--- a/sw/inc/fmtcol.hxx
+++ b/sw/inc/fmtcol.hxx
@@ -35,13 +35,13 @@ protected:
const sal_uInt16* pWhichRanges, SwFormatColl* pDerFrom,
sal_uInt16 nFormatWhich )
: SwFormat( rPool, pFormatName, pWhichRanges, pDerFrom, nFormatWhich )
- { SetAuto(); }
+ { SetAuto(false); }
SwFormatColl( SwAttrPool& rPool, const OUString &rFormatName,
const sal_uInt16* pWhichRanges, SwFormatColl* pDerFrom,
sal_uInt16 nFormatWhich )
: SwFormat( rPool, rFormatName, pWhichRanges, pDerFrom, nFormatWhich )
- { SetAuto(); }
+ { SetAuto(false); }
private:
SwFormatColl(const SwFormatColl & ) SAL_DELETED_FUNCTION;
diff --git a/sw/inc/format.hxx b/sw/inc/format.hxx
index f95fe2640b06..25bc4127384d 100644
--- a/sw/inc/format.hxx
+++ b/sw/inc/format.hxx
@@ -163,10 +163,10 @@ public:
/// Query / set AutoFormat-flag.
bool IsAuto() const { return m_bAutoFormat; }
- void SetAuto( bool bNew = false ) { m_bAutoFormat = bNew; }
+ void SetAuto( bool bNew ) { m_bAutoFormat = bNew; }
- bool IsHidden() const { return m_bHidden; }
- void SetHidden( bool bValue = false ) { m_bHidden = bValue; }
+ bool IsHidden() const { return m_bHidden; }
+ void SetHidden( bool bValue ) { m_bHidden = bValue; }
void GetGrabBagItem(com::sun::star::uno::Any& rVal) const;
void SetGrabBagItem(const com::sun::star::uno::Any& rVal);
diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx
index 6736a62b6630..d3bf6424b90b 100644
--- a/sw/inc/shellio.hxx
+++ b/sw/inc/shellio.hxx
@@ -421,7 +421,7 @@ public:
virtual bool IsStgWriter() const;
- void SetShowProgress( bool bFlag = false ) { bShowProgress = bFlag; }
+ void SetShowProgress( bool bFlag ) { bShowProgress = bFlag; }
const SwAsciiOptions& GetAsciiOptions() const { return aAscOpts; }
void SetAsciiOptions( const SwAsciiOptions& rOpt ) { aAscOpts = rOpt; }