diff options
author | Noel Grandin <noel@peralex.com> | 2016-07-22 14:35:27 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-07-25 06:09:17 +0000 |
commit | 938821fb08e427864db6a10642f385bde9803f6c (patch) | |
tree | 759da9d0d0905a90f6dac2f0bf750721c17421c4 /sc/inc | |
parent | 4d4d77a1aad1bcae18bad35dad5308d33d6b2e51 (diff) |
new loplugin overrideparam
verify that parameters on override methods have the same set of default
values for their params as their parent/super-methods do.
Change-Id: Ibdbc1c6e417fbaa680ea025a6bbf5ba9c2e5bcd2
Reviewed-on: https://gerrit.libreoffice.org/27437
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/attrib.hxx | 2 | ||||
-rw-r--r-- | sc/inc/conditio.hxx | 2 | ||||
-rw-r--r-- | sc/inc/docuno.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sc/inc/attrib.hxx b/sc/inc/attrib.hxx index a3374e8c4ec2..176cfe2632e4 100644 --- a/sc/inc/attrib.hxx +++ b/sc/inc/attrib.hxx @@ -86,7 +86,7 @@ public: ScMergeFlagAttr(ScMF nFlags); virtual ~ScMergeFlagAttr(); - SfxPoolItem * Clone(SfxItemPool * pPool) const override; + SfxPoolItem * Clone(SfxItemPool * pPool = nullptr) const override; ScMF GetValue() const { return (ScMF) SfxInt16Item::GetValue(); } diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx index f214320fe603..1b19b2c349ba 100644 --- a/sc/inc/conditio.hxx +++ b/sc/inc/conditio.hxx @@ -341,7 +341,7 @@ public: const OUString& GetStyle() const { return aStyleName; } void UpdateStyleName(const OUString& rNew) { aStyleName=rNew; } - virtual ScFormatEntry* Clone(ScDocument* pDoc) const override; + virtual ScFormatEntry* Clone(ScDocument* pDoc = nullptr) const override; protected: virtual void DataChanged( const ScRange* pModified ) const override; diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx index 69833ea93d23..47d7997caef3 100644 --- a/sc/inc/docuno.hxx +++ b/sc/inc/docuno.hxx @@ -385,7 +385,7 @@ public: virtual void postKeyEvent(int nType, int nCharCode, int nKeyCode) override; /// @see vcl::ITiledRenderable::postMouseEvent(). - virtual void postMouseEvent(int nType, int nX, int nY, int nCount, int nButtons = MOUSE_LEFT, int nModifier = 0) override; + virtual void postMouseEvent(int nType, int nX, int nY, int nCount, int nButtons, int nModifier) override; /// @see vcl::ITiledRenderable::setTextSelection(). virtual void setTextSelection(int nType, int nX, int nY) override; |