[Libreoffice-commits] core.git: include/tools include/unotools include/vbahelper

Noel Grandin noel at peralex.com
Thu Sep 1 06:34:46 UTC 2016


 include/tools/b3dtrans.hxx             |    2 +-
 include/tools/simplerm.hxx             |    2 +-
 include/tools/stream.hxx               |    3 +--
 include/unotools/confignode.hxx        |    4 ++--
 include/unotools/localedatawrapper.hxx |    2 +-
 include/unotools/mediadescriptor.hxx   |    2 +-
 include/vbahelper/vbahelper.hxx        |    2 +-
 7 files changed, 8 insertions(+), 9 deletions(-)

New commits:
commit 1b86c57b08986109a7a5d431407fde273ab242d0
Author: Noel Grandin <noel at peralex.com>
Date:   Wed Aug 31 14:34:13 2016 +0200

    loplugin:countusersofdefaultparams
    
    Change-Id: Icfc2fdde493619fefaf6119d366f8f7166b3ff36
    Reviewed-on: https://gerrit.libreoffice.org/28547
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noelgrandin at gmail.com>

diff --git a/include/tools/b3dtrans.hxx b/include/tools/b3dtrans.hxx
index b0403cf..75129a6 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 87834a7..7560f4b 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 19d756b..8a9f3d0 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 015a5db..175e881 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 c63e8fc..ac0352f 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 cc2f021..56b5b34 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 d39ced5..2a0776c 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 )


More information about the Libreoffice-commits mailing list