diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-31 14:34:13 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-09-01 06:34:22 +0000 |
commit | 1b86c57b08986109a7a5d431407fde273ab242d0 (patch) | |
tree | 615c6b40dd592deca55d09d0e25e573c607c533e /include | |
parent | c780c6726dca5e2fe33297e44f25ae3e00703294 (diff) |
loplugin:countusersofdefaultparams
Change-Id: Icfc2fdde493619fefaf6119d366f8f7166b3ff36
Reviewed-on: https://gerrit.libreoffice.org/28547
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/tools/b3dtrans.hxx | 2 | ||||
-rw-r--r-- | include/tools/simplerm.hxx | 2 | ||||
-rw-r--r-- | include/tools/stream.hxx | 3 | ||||
-rw-r--r-- | include/unotools/confignode.hxx | 4 | ||||
-rw-r--r-- | include/unotools/localedatawrapper.hxx | 2 | ||||
-rw-r--r-- | include/unotools/mediadescriptor.hxx | 2 | ||||
-rw-r--r-- | include/vbahelper/vbahelper.hxx | 2 |
7 files changed, 8 insertions, 9 deletions
diff --git a/include/tools/b3dtrans.hxx b/include/tools/b3dtrans.hxx index b0403cfc0346..75129a63d95e 100644 --- a/include/tools/b3dtrans.hxx +++ b/include/tools/b3dtrans.hxx @@ -103,7 +103,7 @@ public: // aspect ratio accessors and the defined method of keeping defined aspect ratio double GetRatio() { return mfRatio; } - void SetRatio(double fNew=1.0); + void SetRatio(double fNew); // Parameters of ViewportTransformation void SetDeviceRectangle(double fL=-1.0, double fR=1.0, diff --git a/include/tools/simplerm.hxx b/include/tools/simplerm.hxx index 87834a7fef2b..7560f4bc64c7 100644 --- a/include/tools/simplerm.hxx +++ b/include/tools/simplerm.hxx @@ -51,7 +51,7 @@ public: virtual ~SimpleResMgr(); static SimpleResMgr* Create( const sal_Char* pPrefixName, - const LanguageTag& rLocale = LanguageTag( LANGUAGE_SYSTEM) );// only in VCL + const LanguageTag& rLocale );// only in VCL bool IsValid() const { return m_pResImpl != nullptr; } diff --git a/include/tools/stream.hxx b/include/tools/stream.hxx index 19d756b7431d..8a9f3d04db6e 100644 --- a/include/tools/stream.hxx +++ b/include/tools/stream.hxx @@ -651,8 +651,7 @@ public: void* SwitchBuffer(); // the buffer is not owned by this class - void SetBuffer( void* pBuf, sal_Size nSize, - sal_Size nEOF=0 ); + void SetBuffer( void* pBuf, sal_Size nSize, sal_Size nEOF ); void ObjectOwnsMemory( bool bOwn ) { bOwnsData = bOwn; } void SetResizeOffset( sal_Size nNewResize ) { nResize = nNewResize; } diff --git a/include/unotools/confignode.hxx b/include/unotools/confignode.hxx index 015a5db6b8f2..175e881394ff 100644 --- a/include/unotools/confignode.hxx +++ b/include/unotools/confignode.hxx @@ -148,7 +148,7 @@ namespace utl escaping for such names may not be supported by the underlying API objects. @see getEscape */ - void setEscape(bool _bEnable = true); + void setEscape(bool _bEnable); /** get the flag specifying the current escape behaviour @see setEscape */ @@ -252,7 +252,7 @@ namespace utl static OConfigurationTreeRoot createWithProvider( const css::uno::Reference< css::lang::XMultiServiceFactory >& _rxConfProvider, const OUString& _rPath, - sal_Int32 _nDepth = -1, + sal_Int32 _nDepth, CREATION_MODE _eMode = CM_UPDATABLE, bool _bLazyWrite = true ); diff --git a/include/unotools/localedatawrapper.hxx b/include/unotools/localedatawrapper.hxx index c63e8fc93553..ac0352f0512d 100644 --- a/include/unotools/localedatawrapper.hxx +++ b/include/unotools/localedatawrapper.hxx @@ -257,7 +257,7 @@ public: */ OUString getLongDate( const Date& rDate, CalendarWrapper& rCal, - bool bTwoDigitYear = false + bool bTwoDigitYear ) const; /** Simple number formatting diff --git a/include/unotools/mediadescriptor.hxx b/include/unotools/mediadescriptor.hxx index cc2f02183c82..56b5b348e5a9 100644 --- a/include/unotools/mediadescriptor.hxx +++ b/include/unotools/mediadescriptor.hxx @@ -256,7 +256,7 @@ class UNOTOOLS_DLLPUBLIC MediaDescriptor : public comphelper::SequenceAsHashMap css::uno::Sequence< css::beans::NamedValue > requestAndVerifyDocPassword( comphelper::IDocPasswordVerifier& rVerifier, comphelper::DocPasswordRequestType eRequestType, - const ::std::vector< OUString >* pDefaultPasswords = nullptr ); + const ::std::vector< OUString >* pDefaultPasswords ); // helper private: diff --git a/include/vbahelper/vbahelper.hxx b/include/vbahelper/vbahelper.hxx index d39ced5bbdbb..2a0776c79c84 100644 --- a/include/vbahelper/vbahelper.hxx +++ b/include/vbahelper/vbahelper.hxx @@ -107,7 +107,7 @@ namespace ooo VBAHELPER_DLLPUBLIC OUString extractStringFromAny( const css::uno::Any& rAny, bool bUppercaseBool = false ) throw (css::uno::RuntimeException); /** Extracts a string from the passed Any, which may contain a Boolean, a value, or a string. Returns rDefault, if rAny is empty. Throws, if the Any contains an incompatible type. */ - VBAHELPER_DLLPUBLIC OUString extractStringFromAny( const css::uno::Any& rAny, const OUString& rDefault, bool bUppercaseBool = false ) throw (css::uno::RuntimeException); + VBAHELPER_DLLPUBLIC OUString extractStringFromAny( const css::uno::Any& rAny, const OUString& rDefault, bool bUppercaseBool ) throw (css::uno::RuntimeException); VBAHELPER_DLLPUBLIC OUString getAnyAsString( const css::uno::Any& pvargItem ) throw ( css::uno::RuntimeException ); VBAHELPER_DLLPUBLIC OUString VBAToRegexp(const OUString &rIn); // needs to be in an uno service ( already this code is duplicated in basic ) |