From c3a2d6f9fbdc0ea5c23e0e662f238b23e9c00035 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 28 Nov 2017 08:43:03 +0200 Subject: loplugin:countusersofdefaultparams in sfx2..svtools Change-Id: I65ae5305f9cec14069fd7aef6613e981dbbed846 Reviewed-on: https://gerrit.libreoffice.org/45382 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/svl/itemset.hxx | 4 ++-- include/svl/urihelper.hxx | 2 +- include/svl/visitem.hxx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'include/svl') diff --git a/include/svl/itemset.hxx b/include/svl/itemset.hxx index 9291fd430421..c3715177810c 100644 --- a/include/svl/itemset.hxx +++ b/include/svl/itemset.hxx @@ -166,7 +166,7 @@ public: /// Templatized static version of GetItem() to directly return the correct type if the SfxItemSet is available. - template static const T* GetItem(const SfxItemSet* pItemSet, sal_uInt16 nWhich, bool bSearchInParent = true) + template static const T* GetItem(const SfxItemSet* pItemSet, sal_uInt16 nWhich, bool bSearchInParent) { if (pItemSet) return pItemSet->GetItem(nWhich, bSearchInParent); @@ -201,7 +201,7 @@ public: bool Put( const SfxItemSet&, bool bInvalidAsDefault = true ); void PutExtended( const SfxItemSet&, - SfxItemState eDontCareAs = SfxItemState::UNKNOWN, + SfxItemState eDontCareAs, SfxItemState eDefaultAs = SfxItemState::UNKNOWN ); bool Set( const SfxItemSet&, bool bDeep = true ); diff --git a/include/svl/urihelper.hxx b/include/svl/urihelper.hxx index fd4039e5da8f..6b5a2fc2ff36 100644 --- a/include/svl/urihelper.hxx +++ b/include/svl/urihelper.hxx @@ -147,7 +147,7 @@ SVL_DLLPUBLIC OUString FindFirstURLInText(OUString const & rText, @return The input URI with any password component removed. */ SVL_DLLPUBLIC OUString removePassword(OUString const & rURI, - INetURLObject::EncodeMechanism eEncodeMechanism = INetURLObject::EncodeMechanism::WasEncoded, + INetURLObject::EncodeMechanism eEncodeMechanism, INetURLObject::DecodeMechanism eDecodeMechanism = INetURLObject::DecodeMechanism::ToIUri, rtl_TextEncoding eCharset = RTL_TEXTENCODING_UTF8); diff --git a/include/svl/visitem.hxx b/include/svl/visitem.hxx index a5a481fa2a6c..af382c426bc3 100644 --- a/include/svl/visitem.hxx +++ b/include/svl/visitem.hxx @@ -30,7 +30,7 @@ class SVL_DLLPUBLIC SfxVisibilityItem: public SfxPoolItem public: - explicit SfxVisibilityItem(sal_uInt16 which, bool bVisible = true): + explicit SfxVisibilityItem(sal_uInt16 which, bool bVisible): SfxPoolItem(which) { m_nValue.bVisible = bVisible; -- cgit