[Libreoffice-commits] core.git: sot/source starmath/inc stoc/source store/source svl/source svtools/inc svtools/source

Noel Grandin noel.grandin at collabora.co.uk
Fri Oct 14 08:57:48 UTC 2016


 sot/source/sdstor/ucbstorage.cxx    |    6 +++---
 starmath/inc/caret.hxx              |    6 +++---
 starmath/inc/unomodel.hxx           |    2 +-
 stoc/source/security/permissions.h  |    2 +-
 store/source/storbase.hxx           |    6 +++---
 store/source/storcach.cxx           |    2 +-
 store/source/stordata.hxx           |    2 +-
 store/source/stortree.hxx           |    2 +-
 svl/source/items/stylepool.cxx      |    2 +-
 svtools/inc/roadmap.hxx             |    2 +-
 svtools/source/control/ctrlbox.cxx  |    6 ++++--
 svtools/source/control/roadmap.cxx  |    2 +-
 svtools/source/control/tabbar.cxx   |    4 ++--
 svtools/source/graphic/grfcache.hxx |    4 ++--
 14 files changed, 25 insertions(+), 23 deletions(-)

New commits:
commit faf4bf0c3e017b9caec27a1f7355c9cf636bf19b
Author: Noel Grandin <noel.grandin at collabora.co.uk>
Date:   Fri Oct 14 10:52:44 2016 +0200

    loplugin:countusersofdefaultparams in sot..svtools
    
    Change-Id: Ifce19de3518f3eaf5a1b6439f9053feee4a33c14

diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index f0555e5..b0a4f87 100644
--- a/sot/source/sdstor/ucbstorage.cxx
+++ b/sot/source/sdstor/ucbstorage.cxx
@@ -436,8 +436,8 @@ public:
                                                 // reference is destroyed
     bool                        m_bIsOLEStorage;// an OLEStorage on a UCBStorageStream makes this an Autocommit-stream
 
-                                UCBStorageStream_Impl( const OUString&, StreamMode, UCBStorageStream*, bool, const OString* pKey=nullptr,
-                                                       bool bRepair = false, Reference< XProgressHandler > const & xProgress = Reference< XProgressHandler >() );
+                                UCBStorageStream_Impl( const OUString&, StreamMode, UCBStorageStream*, bool, const OString* pKey,
+                                                       bool bRepair, Reference< XProgressHandler > const & xProgress );
 
     void                        Free();
     bool                        Init();
@@ -500,7 +500,7 @@ public:
                                 UCBStorage_Impl( const ::ucbhelper::Content&, const OUString&, StreamMode, UCBStorage*, bool,
                                                  bool, bool = false, Reference< XProgressHandler > const & = Reference< XProgressHandler >() );
                                 UCBStorage_Impl( const OUString&, StreamMode, UCBStorage*, bool, bool,
-                                                 bool = false, Reference< XProgressHandler > const & = Reference< XProgressHandler >() );
+                                                 bool, Reference< XProgressHandler > const & );
                                 UCBStorage_Impl( SvStream&, UCBStorage*, bool );
     void                        Init();
     sal_Int16                   Commit();
diff --git a/starmath/inc/caret.hxx b/starmath/inc/caret.hxx
index e2c6486..08afcce 100644
--- a/starmath/inc/caret.hxx
+++ b/starmath/inc/caret.hxx
@@ -99,9 +99,9 @@ private:
 
 /** An entry in SmCaretPosGraph */
 struct SmCaretPosGraphEntry{
-    SmCaretPosGraphEntry(SmCaretPos pos = SmCaretPos(),
-                       SmCaretPosGraphEntry* left = nullptr,
-                       SmCaretPosGraphEntry* right = nullptr){
+    SmCaretPosGraphEntry(SmCaretPos pos,
+                         SmCaretPosGraphEntry* left,
+                         SmCaretPosGraphEntry* right) {
         CaretPos = pos;
         Left = left;
         Right = right;
diff --git a/starmath/inc/unomodel.hxx b/starmath/inc/unomodel.hxx
index f20cdb8..34133b0 100644
--- a/starmath/inc/unomodel.hxx
+++ b/starmath/inc/unomodel.hxx
@@ -59,7 +59,7 @@ protected:
     virtual void _getPropertyValues( const comphelper::PropertyMapEntry** ppEntries, css::uno::Any* pValue )
         throw (css::uno::RuntimeException, css::beans::UnknownPropertyException, css::lang::WrappedTargetException, std::exception) override;
 public:
-    explicit SmModel( SfxObjectShell *pObjSh = nullptr );
+    explicit SmModel( SfxObjectShell *pObjSh );
     virtual ~SmModel() throw () override;
 
     //XInterface
diff --git a/stoc/source/security/permissions.h b/stoc/source/security/permissions.h
index dbdf8a0..582244e 100644
--- a/stoc/source/security/permissions.h
+++ b/stoc/source/security/permissions.h
@@ -39,7 +39,7 @@ public:
 
     inline Permission(
         t_type type,
-        ::rtl::Reference< Permission > const & next = ::rtl::Reference< Permission >() )
+        ::rtl::Reference< Permission > const & next )
         : m_next( next )
         , m_type( type )
         {}
diff --git a/store/source/storbase.hxx b/store/source/storbase.hxx
index 0b16fae..f3224b2 100644
--- a/store/source/storbase.hxx
+++ b/store/source/storbase.hxx
@@ -140,9 +140,9 @@ struct OStorePageDescriptor
     /** Construction.
      */
     explicit OStorePageDescriptor (
-        sal_uInt32 nAddr = STORE_PAGE_NULL,
-        sal_uInt16 nSize = 0,
-        sal_uInt16 nUsed = 0)
+        sal_uInt32 nAddr,
+        sal_uInt16 nSize,
+        sal_uInt16 nUsed)
         : m_nAddr (store::htonl(nAddr)),
           m_nSize (store::htons(nSize)),
           m_nUsed (store::htons(nUsed))
diff --git a/store/source/storcach.cxx b/store/source/storcach.cxx
index 8825d69..a48d3ed 100644
--- a/store/source/storcach.cxx
+++ b/store/source/storcach.cxx
@@ -51,7 +51,7 @@ struct Entry
     static void   operator delete (void *, void *) {}
 
     // Construction
-    explicit Entry (std::shared_ptr<PageData> const & rxPage = std::shared_ptr<PageData>(), sal_uInt32 nOffset = STORE_PAGE_NULL)
+    explicit Entry (std::shared_ptr<PageData> const & rxPage, sal_uInt32 nOffset)
         : m_xPage(rxPage), m_nOffset(nOffset), m_pNext(nullptr)
     {}
 
diff --git a/store/source/stordata.hxx b/store/source/stordata.hxx
index 02bddf0..6c81fd6 100644
--- a/store/source/stordata.hxx
+++ b/store/source/stordata.hxx
@@ -75,7 +75,7 @@ struct OStoreDataPageData : public store::PageData
 
     /** Construction.
     */
-    explicit OStoreDataPageData (sal_uInt16 nPageSize = self::thePageSize)
+    explicit OStoreDataPageData (sal_uInt16 nPageSize)
         : base (nPageSize)
     {
         base::m_aGuard.m_nMagic = store::htonl(self::theTypeId);
diff --git a/store/source/stortree.hxx b/store/source/stortree.hxx
index 114377a..69db0c3 100644
--- a/store/source/stortree.hxx
+++ b/store/source/stortree.hxx
@@ -160,7 +160,7 @@ struct OStoreBTreeNodeData : public store::PageData
 
     /** Construction.
     */
-    explicit OStoreBTreeNodeData (sal_uInt16 nPageSize = self::thePageSize);
+    explicit OStoreBTreeNodeData (sal_uInt16 nPageSize);
 
     /** guard (external representation).
     */
diff --git a/svl/source/items/stylepool.cxx b/svl/source/items/stylepool.cxx
index 347334a..eb615eb 100644
--- a/svl/source/items/stylepool.cxx
+++ b/svl/source/items/stylepool.cxx
@@ -351,7 +351,7 @@ private:
     SfxItemSet* mpIgnorableItems;
 public:
     // #i86923#
-    explicit StylePoolImpl( SfxItemSet* pIgnorableItems = nullptr )
+    explicit StylePoolImpl( SfxItemSet* pIgnorableItems )
         : maRoot(),
           mpIgnorableItems( pIgnorableItems != nullptr
                             ? pIgnorableItems->Clone( false )
diff --git a/svtools/inc/roadmap.hxx b/svtools/inc/roadmap.hxx
index da1047e..04b20f9 100644
--- a/svtools/inc/roadmap.hxx
+++ b/svtools/inc/roadmap.hxx
@@ -50,7 +50,7 @@ protected:
     void            implInit(vcl::RenderContext& rRenderContext);
 
 public:
-    ORoadmap( vcl::Window* _pParent, WinBits _nWinStyle = 0 );
+    ORoadmap( vcl::Window* _pParent, WinBits _nWinStyle );
     virtual ~ORoadmap( ) override;
     virtual void dispose() override;
 
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx
index cb190b4..269abf7 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -444,8 +444,10 @@ private:
 
 public:
     ImpLineListData( BorderWidthImpl aWidthImpl, sal_uInt16 nStyle,
-            long nMinWidth=0, Color ( *pColor1Fn ) ( Color ) = &sameColor,
-            Color ( *pColor2Fn ) ( Color ) = &sameColor, Color ( *pColorDistFn ) ( Color, Color ) = &sameDistColor );
+            long nMinWidth,
+            Color ( *pColor1Fn ) ( Color ),
+            Color ( *pColor2Fn ) ( Color ),
+            Color ( *pColorDistFn ) ( Color, Color ) );
 
     /** Returns the computed width of the line 1 in twips. */
     long GetLine1ForWidth( long nWidth ) { return m_aWidthImpl.GetLine1( nWidth ); }
diff --git a/svtools/source/control/roadmap.cxx b/svtools/source/control/roadmap.cxx
index 6381591..cd9b9a0e9 100644
--- a/svtools/source/control/roadmap.cxx
+++ b/svtools/source/control/roadmap.cxx
@@ -40,7 +40,7 @@ typedef std::vector< RoadmapItem* > HL_Vector;
 class IDLabel :  public FixedText
 {
 public:
-    IDLabel( vcl::Window* _pParent, WinBits _nWinStyle = 0 );
+    IDLabel( vcl::Window* _pParent, WinBits _nWinStyle );
     virtual void    DataChanged( const DataChangedEvent& rDCEvt ) override;
 };
 
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index 2d7c5d8..446bb6a 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -311,7 +311,7 @@ bool ImplTabButton::PreNotify(NotifyEvent& rNotifyEvent)
 class ImplTabSizer : public vcl::Window
 {
 public:
-                    ImplTabSizer( TabBar* pParent, WinBits nWinStyle = 0 );
+                    ImplTabSizer( TabBar* pParent, WinBits nWinStyle );
 
     TabBar*         GetParent() const { return static_cast<TabBar*>(Window::GetParent()); }
 
@@ -392,7 +392,7 @@ private:
                     DECL_LINK( ImplEndTimerHdl, Idle*, void );
 
 public:
-                    TabBarEdit( TabBar* pParent, WinBits nWinStyle = 0 );
+                    TabBarEdit( TabBar* pParent, WinBits nWinStyle );
 
     TabBar*         GetParent() const { return static_cast<TabBar*>(Window::GetParent()); }
 
diff --git a/svtools/source/graphic/grfcache.hxx b/svtools/source/graphic/grfcache.hxx
index eaffeb4..8db16ae 100644
--- a/svtools/source/graphic/grfcache.hxx
+++ b/svtools/source/graphic/grfcache.hxx
@@ -53,8 +53,8 @@ private:
 public:
 
                             GraphicCache(
-                                sal_uLong nDisplayCacheSize = 10000000UL,
-                                sal_uLong nMaxObjDisplayCacheSize = 2400000UL
+                                sal_uLong nDisplayCacheSize,
+                                sal_uLong nMaxObjDisplayCacheSize
                             );
 
                             ~GraphicCache();


More information about the Libreoffice-commits mailing list