summaryrefslogtreecommitdiff
path: root/sw/inc/postithelper.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-30 11:59:33 +0200
committerNoel Grandin <noel@peralex.com>2016-03-31 09:59:23 +0200
commit2bd1e7aafeebdfe0e1656ed1ff01762039be5af1 (patch)
tree279c9bbaffbf8b253d7b41665b1a3e403e1480a4 /sw/inc/postithelper.hxx
parent7a7be32e5265f897174f3880adc061dac0203f1f (diff)
loplugin:constantparam in sw
Change-Id: I2d99ff8149f6348a3781e01e9b3079f6c2505d6a
Diffstat (limited to 'sw/inc/postithelper.hxx')
-rw-r--r--sw/inc/postithelper.hxx13
1 files changed, 5 insertions, 8 deletions
diff --git a/sw/inc/postithelper.hxx b/sw/inc/postithelper.hxx
index 64cc025ec73e..e4bf2bf5a3c5 100644
--- a/sw/inc/postithelper.hxx
+++ b/sw/inc/postithelper.hxx
@@ -96,10 +96,9 @@ public:
SwPostItHelper::SwLayoutStatus mLayoutStatus;
SwLayoutInfo maLayoutInfo;
- SwSidebarItem( const bool aShow,
- const bool aFocus)
+ SwSidebarItem( const bool aFocus)
: pPostIt(nullptr)
- , bShow(aShow)
+ , bShow(true)
, bFocus(aFocus)
, mLayoutStatus( SwPostItHelper::INVISIBLE )
, maLayoutInfo()
@@ -116,8 +115,7 @@ public:
virtual const SfxBroadcaster* GetBroadCaster() const = 0;
virtual VclPtr<sw::sidebarwindows::SwSidebarWin> GetSidebarWindow( SwEditWin& rEditWin,
WinBits nBits,
- SwPostItMgr& aMgr,
- SwPostItBits aBits) = 0;
+ SwPostItMgr& aMgr) = 0;
};
class SwAnnotationItem: public SwSidebarItem
@@ -126,7 +124,7 @@ public:
SwAnnotationItem(
SwFormatField& rFormatField,
const bool aFocus)
- : SwSidebarItem( true/*aShow*/, aFocus )
+ : SwSidebarItem( aFocus )
, mrFormatField( rFormatField )
{
}
@@ -148,8 +146,7 @@ public:
virtual VclPtr<sw::sidebarwindows::SwSidebarWin> GetSidebarWindow(
SwEditWin& rEditWin,
WinBits nBits,
- SwPostItMgr& aMgr,
- SwPostItBits aBits ) override;
+ SwPostItMgr& aMgr ) override;
private:
SwFormatField& mrFormatField;