summaryrefslogtreecommitdiff
path: root/include/comphelper
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-07-25 13:32:04 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-08-25 06:37:42 +0000
commitb8064bdf7fabdbfd2546830f6fb8f0de6b8d4329 (patch)
treecb8c8db34a096467cf81c6ae0649a00032bb4a7f /include/comphelper
parent1e84b23839d96068c862e746c9162db79d2c8c62 (diff)
new loplugin: countusersofdefaultparams
Change-Id: I79e2c690f3e664c14af12cf763dd5a8ac20d6b04 Reviewed-on: https://gerrit.libreoffice.org/28353 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/comphelper')
-rw-r--r--include/comphelper/accessiblewrapper.hxx2
-rw-r--r--include/comphelper/configuration.hxx4
-rw-r--r--include/comphelper/embeddedobjectcontainer.hxx2
-rw-r--r--include/comphelper/propertybag.hxx2
-rw-r--r--include/comphelper/sequence.hxx2
-rw-r--r--include/comphelper/string.hxx2
6 files changed, 6 insertions, 8 deletions
diff --git a/include/comphelper/accessiblewrapper.hxx b/include/comphelper/accessiblewrapper.hxx
index 84479c023f2a..4676d2c45bea 100644
--- a/include/comphelper/accessiblewrapper.hxx
+++ b/include/comphelper/accessiblewrapper.hxx
@@ -339,7 +339,7 @@ namespace comphelper
/** specifies if the children are to be considered transient (i.e.: not cached)
<p>to be called only once per lifetime</p>
*/
- void setTransientChildren( bool _bSet = true );
+ void setTransientChildren( bool _bSet );
/** sets the XAccessible which belongs to the XAccessibleContext which we work for
<p>to be called only once per lifetime</p>
diff --git a/include/comphelper/configuration.hxx b/include/comphelper/configuration.hxx
index 915d803b6f16..d2df43b4d880 100644
--- a/include/comphelper/configuration.hxx
+++ b/include/comphelper/configuration.hxx
@@ -245,9 +245,7 @@ template< typename T, typename U > struct ConfigurationLocalizedProperty
/// com.sun.star.configuration.theDefaultProvider.
///
/// For nillable properties, U is of type boost::optional<U'>.
- static U get(
- css::uno::Reference< css::uno::XComponentContext >
- const & context = comphelper::getProcessComponentContext())
+ static U get(css::uno::Reference< css::uno::XComponentContext > const & context)
{
// Folding this into one statement causes a bogus error at least with
// Red Hat GCC 4.6.2-1:
diff --git a/include/comphelper/embeddedobjectcontainer.hxx b/include/comphelper/embeddedobjectcontainer.hxx
index 70a583c51ec0..af548adbb578 100644
--- a/include/comphelper/embeddedobjectcontainer.hxx
+++ b/include/comphelper/embeddedobjectcontainer.hxx
@@ -57,7 +57,7 @@ class COMPHELPER_DLLPUBLIC EmbeddedObjectContainer
css::uno::Reference < css::embed::XEmbeddedObject > Get_Impl( const OUString&,
const css::uno::Reference < css::embed::XEmbeddedObject >& xCopy,
- OUString const* pBaseURL = nullptr);
+ OUString const* pBaseURL);
public:
// add an embedded object to the container storage
diff --git a/include/comphelper/propertybag.hxx b/include/comphelper/propertybag.hxx
index 3cc4ceaeec3b..2123484ebb85 100644
--- a/include/comphelper/propertybag.hxx
+++ b/include/comphelper/propertybag.hxx
@@ -53,7 +53,7 @@ namespace comphelper
@param i_isAllowed
iff true, empty property name will be allowed
*/
- void setAllowEmptyPropertyName(bool i_isAllowed = true);
+ void setAllowEmptyPropertyName(bool i_isAllowed);
/** adds a property to the bag
diff --git a/include/comphelper/sequence.hxx b/include/comphelper/sequence.hxx
index cbc2317b5731..7d8209d7a21f 100644
--- a/include/comphelper/sequence.hxx
+++ b/include/comphelper/sequence.hxx
@@ -32,7 +32,7 @@ namespace comphelper
/** search the given string within the given sequence, return the positions where it was found.
if _bOnlyFirst is sal_True, only the first occurrence will be returned.
*/
- COMPHELPER_DLLPUBLIC css::uno::Sequence<sal_Int16> findValue(const css::uno::Sequence< OUString >& _rList, const OUString& _rValue, bool _bOnlyFirst = false);
+ COMPHELPER_DLLPUBLIC css::uno::Sequence<sal_Int16> findValue(const css::uno::Sequence< OUString >& _rList, const OUString& _rValue, bool _bOnlyFirst);
namespace internal
{
diff --git a/include/comphelper/string.hxx b/include/comphelper/string.hxx
index ea8762850fdd..8aab4f12eddf 100644
--- a/include/comphelper/string.hxx
+++ b/include/comphelper/string.hxx
@@ -253,7 +253,7 @@ COMPHELPER_DLLPUBLIC OUString setToken(const OUString& rIn, sal_Int32 nToken, sa
or -1 if none of the code units occur in the string
*/
COMPHELPER_DLLPUBLIC sal_Int32 indexOfAny(OUString const& rIn,
- sal_Unicode const*const pChars, sal_Int32 const nPos = 0);
+ sal_Unicode const*const pChars, sal_Int32 const nPos);
/** Convert a sequence of strings to a single comma separated string.