diff options
author | Noel Grandin <noel@peralex.com> | 2016-02-29 10:59:14 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-02-29 11:11:29 +0200 |
commit | ee74e401aae0543fd20d80ec4b5c11877e56dafe (patch) | |
tree | c04fa51af8f3bddad408dea7100d839ba3c1214e /sw/inc/section.hxx | |
parent | 4fe23a797291dbf582925ace1392772577506c4e (diff) |
loplugin:unuseddefaultparam in sw (part3)
Change-Id: Ibff7ac9718929349ee7daa3febb0f8fe4a9fa4db
Diffstat (limited to 'sw/inc/section.hxx')
-rw-r--r-- | sw/inc/section.hxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sw/inc/section.hxx b/sw/inc/section.hxx index b6008d9e3961..b5b52ce8b9bf 100644 --- a/sw/inc/section.hxx +++ b/sw/inc/section.hxx @@ -115,10 +115,9 @@ public: void SetCondition(OUString const& rNew) { m_sCondition = rNew; } OUString GetLinkFileName() const { return m_sLinkFileName; } - void SetLinkFileName(OUString const& rNew, OUString const* pPassWd = nullptr) + void SetLinkFileName(OUString const& rNew) { m_sLinkFileName = rNew; - if (pPassWd) { SetLinkFilePassword(*pPassWd); } } OUString GetLinkFilePassword() const { return m_sLinkFilePassword; } @@ -201,7 +200,7 @@ public: void SetCondition(OUString const& rNew) { m_Data.SetCondition(rNew); } OUString GetLinkFileName() const; - void SetLinkFileName(OUString const& rNew, OUString const*const pPassWd = nullptr); + void SetLinkFileName(OUString const& rNew); // Password of linked file (only valid during runtime!) OUString GetLinkFilePassword() const { return m_Data.GetLinkFilePassword(); } @@ -316,9 +315,9 @@ public: bool IsInNodesArr() const; SwSectionNode* GetSectionNode(bool const bEvenIfInUndo = false); - const SwSectionNode* GetSectionNode(bool const bEvenIfInUndo = false) const + const SwSectionNode* GetSectionNode() const { return const_cast<SwSectionFormat *>(this) - ->GetSectionNode(bEvenIfInUndo); } + ->GetSectionNode(); } // Is section a valid one for global document? const SwSection* GetGlobalDocSection() const; |