summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-14 10:52:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-14 10:53:30 +0200
commitfaf4bf0c3e017b9caec27a1f7355c9cf636bf19b (patch)
treeeec729652be79c6733b3461265d65697bc340066
parente9f28d0d98fef5aff63131a8e1c3395da0a422ad (diff)
loplugin:countusersofdefaultparams in sot..svtools
Change-Id: Ifce19de3518f3eaf5a1b6439f9053feee4a33c14
-rw-r--r--sot/source/sdstor/ucbstorage.cxx6
-rw-r--r--starmath/inc/caret.hxx6
-rw-r--r--starmath/inc/unomodel.hxx2
-rw-r--r--stoc/source/security/permissions.h2
-rw-r--r--store/source/storbase.hxx6
-rw-r--r--store/source/storcach.cxx2
-rw-r--r--store/source/stordata.hxx2
-rw-r--r--store/source/stortree.hxx2
-rw-r--r--svl/source/items/stylepool.cxx2
-rw-r--r--svtools/inc/roadmap.hxx2
-rw-r--r--svtools/source/control/ctrlbox.cxx6
-rw-r--r--svtools/source/control/roadmap.cxx2
-rw-r--r--svtools/source/control/tabbar.cxx4
-rw-r--r--svtools/source/graphic/grfcache.hxx4
14 files changed, 25 insertions, 23 deletions
diff --git a/sot/source/sdstor/ucbstorage.cxx b/sot/source/sdstor/ucbstorage.cxx
index f0555e5eeb58..b0a4f87017b0 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 e2c648643008..08afcce5bcc1 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 f20cdb8f95f5..34133b0fc6cb 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 dbdf8a09d927..582244e6dabd 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 0b16fae15f34..f3224b2a9dc9 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 8825d690250a..a48d3ed91a98 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 02bddf088aaa..6c81fd6af257 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 114377a46cc2..69db0c3c8e9a 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 347334ab12c9..eb615eb4408a 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 da1047e6d0d1..04b20f9eb5e5 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 cb190b4af2a7..269abf707764 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 638159100126..cd9b9a0e9a12 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 2d7c5d83c96d..446bb6a47942 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 eaffeb40d219..8db16aee1d52 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();