summaryrefslogtreecommitdiff
path: root/sc/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-22 14:35:27 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-07-25 06:09:17 +0000
commit938821fb08e427864db6a10642f385bde9803f6c (patch)
tree759da9d0d0905a90f6dac2f0bf750721c17421c4 /sc/inc
parent4d4d77a1aad1bcae18bad35dad5308d33d6b2e51 (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.hxx2
-rw-r--r--sc/inc/conditio.hxx2
-rw-r--r--sc/inc/docuno.hxx2
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;