summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-03 14:32:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-04 06:36:22 +0000
commit480f6916eff8636fbf6b980a604c6e19a099df08 (patch)
treef5cd156734d6a082dfbe3e24d06ec9f3505f8366 /sw/source
parent958827673309a80a710a86a9b115945547f520a0 (diff)
loplugin:countusersofdefaultparams in sw
Change-Id: I65beb17816641cff6a07379b7ba234afe26806b3 Reviewed-on: https://gerrit.libreoffice.org/29488 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/access/accportions.hxx2
-rw-r--r--sw/source/core/doc/doccomp.cxx2
-rw-r--r--sw/source/core/doc/tblrwcl.cxx2
-rw-r--r--sw/source/core/inc/UndoManager.hxx2
-rw-r--r--sw/source/core/inc/UndoNumbering.hxx2
-rw-r--r--sw/source/core/inc/UndoRedline.hxx2
-rw-r--r--sw/source/core/inc/cellfrm.hxx2
-rw-r--r--sw/source/core/inc/docfld.hxx4
-rw-r--r--sw/source/core/inc/dview.hxx2
-rw-r--r--sw/source/core/inc/frame.hxx2
-rw-r--r--sw/source/core/inc/mvsave.hxx2
-rw-r--r--sw/source/core/inc/objectformatter.hxx2
-rw-r--r--sw/source/core/inc/swcache.hxx2
-rw-r--r--sw/source/core/inc/tblrwcl.hxx2
-rw-r--r--sw/source/core/inc/txtfrm.hxx4
-rw-r--r--sw/source/core/inc/unobookmark.hxx2
-rw-r--r--sw/source/core/inc/unofield.hxx2
-rw-r--r--sw/source/core/inc/unosection.hxx2
-rw-r--r--sw/source/core/inc/viewimp.hxx4
-rw-r--r--sw/source/core/text/pormulti.hxx2
20 files changed, 23 insertions, 23 deletions
diff --git a/sw/source/core/access/accportions.hxx b/sw/source/core/access/accportions.hxx
index 946a10c5988d..70ffd53349bd 100644
--- a/sw/source/core/access/accportions.hxx
+++ b/sw/source/core/access/accportions.hxx
@@ -93,7 +93,7 @@ class SwAccessiblePortionData : public SwPortionHandler
public:
SwAccessiblePortionData( const SwTextNode* pTextNd,
- const SwViewOption* pViewOpt = nullptr );
+ const SwViewOption* pViewOpt );
virtual ~SwAccessiblePortionData() override;
// SwPortionHandler methods
diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx
index ebe4e58ef9bc..53576828d8b4 100644
--- a/sw/source/core/doc/doccomp.cxx
+++ b/sw/source/core/doc/doccomp.cxx
@@ -339,7 +339,7 @@ protected:
delete[] pData;
}
- int FindLCS( int *pLcs1, int *pLcs2, int nStt1 = 0,
+ int FindLCS( int *pLcs1, int *pLcs2, int nStt1,
int nEnd1 = 0, int nStt2 = 0, int nEnd2 = 0 );
public:
diff --git a/sw/source/core/doc/tblrwcl.cxx b/sw/source/core/doc/tblrwcl.cxx
index 8dd4f4b75505..6652bcaa6380 100644
--- a/sw/source/core/doc/tblrwcl.cxx
+++ b/sw/source/core/doc/tblrwcl.cxx
@@ -1371,7 +1371,7 @@ struct InsULPara
InsULPara( SwTableNode* pTNd,
SwTableBox* pLeft,
- SwTableLine* pLine=nullptr )
+ SwTableLine* pLine )
: pTableNd( pTNd ), pInsLine( pLine ), pInsBox( nullptr ),
pLeftBox( pLeft )
{ bUL_LR = true; bUL = true; }
diff --git a/sw/source/core/inc/UndoManager.hxx b/sw/source/core/inc/UndoManager.hxx
index 62649df04dc5..247e2455e1bf 100644
--- a/sw/source/core/inc/UndoManager.hxx
+++ b/sw/source/core/inc/UndoManager.hxx
@@ -68,7 +68,7 @@ public:
const SwView* pView = nullptr) const override;
virtual SwUndoComments_t GetUndoComments() const override;
virtual bool GetFirstRedoInfo(OUString *const o_pStr,
- SwUndoId *const o_pId = nullptr,
+ SwUndoId *const o_pId,
const SwView* pView = nullptr) const override;
virtual SwUndoComments_t GetRedoComments() const override;
virtual bool Repeat(::sw::RepeatContext & rContext,
diff --git a/sw/source/core/inc/UndoNumbering.hxx b/sw/source/core/inc/UndoNumbering.hxx
index 4997526d3fbd..f3ce48bf6d30 100644
--- a/sw/source/core/inc/UndoNumbering.hxx
+++ b/sw/source/core/inc/UndoNumbering.hxx
@@ -86,7 +86,7 @@ class SwUndoMoveNum : public SwUndo, private SwUndRng
long nOffset;
public:
- SwUndoMoveNum( const SwPaM& rPam, long nOffset, bool bIsOutlMv = false );
+ SwUndoMoveNum( const SwPaM& rPam, long nOffset, bool bIsOutlMv );
virtual void UndoImpl( ::sw::UndoRedoContext & ) override;
virtual void RedoImpl( ::sw::UndoRedoContext & ) override;
diff --git a/sw/source/core/inc/UndoRedline.hxx b/sw/source/core/inc/UndoRedline.hxx
index bc7b72f8a385..e4178532bb2c 100644
--- a/sw/source/core/inc/UndoRedline.hxx
+++ b/sw/source/core/inc/UndoRedline.hxx
@@ -59,7 +59,7 @@ class SwUndoRedlineDelete : public SwUndoRedline
virtual void RedoRedlineImpl(SwDoc & rDoc, SwPaM & rPam) override;
public:
- SwUndoRedlineDelete( const SwPaM& rRange, SwUndoId nUserId = UNDO_EMPTY );
+ SwUndoRedlineDelete( const SwPaM& rRange, SwUndoId nUserId );
bool CanGrouping( const SwUndoRedlineDelete& rPrev );
diff --git a/sw/source/core/inc/cellfrm.hxx b/sw/source/core/inc/cellfrm.hxx
index 763e90a8e61d..b70c54b54ede 100644
--- a/sw/source/core/inc/cellfrm.hxx
+++ b/sw/source/core/inc/cellfrm.hxx
@@ -40,7 +40,7 @@ protected:
virtual void Modify( const SfxPoolItem*, const SfxPoolItem* ) override;
public:
- SwCellFrame( const SwTableBox &, SwFrame*, bool bInsertContent = true );
+ SwCellFrame( const SwTableBox &, SwFrame*, bool bInsertContent );
virtual bool GetCursorOfst( SwPosition *, Point&, SwCursorMoveState* = nullptr, bool bTestBackground = false ) const override;
virtual void Paint( vcl::RenderContext& rRenderContext, SwRect const&,
diff --git a/sw/source/core/inc/docfld.hxx b/sw/source/core/inc/docfld.hxx
index 231a63aaec2a..6cf9ba575fd5 100644
--- a/sw/source/core/inc/docfld.hxx
+++ b/sw/source/core/inc/docfld.hxx
@@ -74,7 +74,7 @@ public:
SetGetExpField( const SwPosition& rPos );
- SetGetExpField( const SwFlyFrameFormat& rFlyFormat, const SwPosition* pPos = nullptr );
+ SetGetExpField( const SwFlyFrameFormat& rFlyFormat, const SwPosition* pPos );
bool operator==( const SetGetExpField& rField ) const;
bool operator<( const SetGetExpField& rField ) const;
@@ -110,7 +110,7 @@ public:
struct HashStr : public SwHash
{
OUString aSetStr;
- HashStr( const OUString& rName, const OUString& rText, HashStr* = nullptr );
+ HashStr( const OUString& rName, const OUString& rText, HashStr* );
};
struct SwCalcFieldType : public SwHash
diff --git a/sw/source/core/inc/dview.hxx b/sw/source/core/inc/dview.hxx
index 1b66f6f0d696..34a1de4d21e1 100644
--- a/sw/source/core/inc/dview.hxx
+++ b/sw/source/core/inc/dview.hxx
@@ -79,7 +79,7 @@ protected:
virtual SdrUndoManager* getSdrUndoManagerForEnhancedTextEdit() const override;
public:
- SwDrawView( SwViewShellImp &rI, SdrModel *pMd, OutputDevice* pOutDev=nullptr );
+ SwDrawView( SwViewShellImp &rI, SdrModel *pMd, OutputDevice* pOutDev );
// from base class
virtual SdrObject* GetMaxToTopObj(SdrObject* pObj) const override;
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx
index 95ec45a3bb2e..a3451ee44adc 100644
--- a/sw/source/core/inc/frame.hxx
+++ b/sw/source/core/inc/frame.hxx
@@ -646,7 +646,7 @@ public:
void ImplInvalidateLineNum();
inline void InvalidateNextPos( bool bNoFootnote = false );
- void ImplInvalidateNextPos( bool bNoFootnote = false );
+ void ImplInvalidateNextPos( bool bNoFootnote );
/** method to invalidate printing area of next frame
#i11859#
diff --git a/sw/source/core/inc/mvsave.hxx b/sw/source/core/inc/mvsave.hxx
index 14f3662876c6..df770da67f67 100644
--- a/sw/source/core/inc/mvsave.hxx
+++ b/sw/source/core/inc/mvsave.hxx
@@ -49,7 +49,7 @@ namespace sw { namespace mark
SaveBookmark(
const ::sw::mark::IMark& rBkmk,
const SwNodeIndex& rMvPos,
- const SwIndex* pIdx =nullptr);
+ const SwIndex* pIdx);
void SetInDoc(SwDoc* pDoc,
const SwNodeIndex&,
const SwIndex* pIdx =nullptr);
diff --git a/sw/source/core/inc/objectformatter.hxx b/sw/source/core/inc/objectformatter.hxx
index 1de7de04eb29..e010ee21821c 100644
--- a/sw/source/core/inc/objectformatter.hxx
+++ b/sw/source/core/inc/objectformatter.hxx
@@ -73,7 +73,7 @@ class SwObjectFormatter
protected:
SwObjectFormatter( const SwPageFrame& _rPageFrame,
- SwLayAction* _pLayAction = nullptr,
+ SwLayAction* _pLayAction,
const bool _bCollectPgNumOfAnchors = false );
static SwObjectFormatter* CreateObjFormatter( SwFrame& _rAnchorFrame,
diff --git a/sw/source/core/inc/swcache.hxx b/sw/source/core/inc/swcache.hxx
index 7784e0118a28..d8dfe25687b4 100644
--- a/sw/source/core/inc/swcache.hxx
+++ b/sw/source/core/inc/swcache.hxx
@@ -199,7 +199,7 @@ protected:
inline SwCacheObj *Get();
- inline SwCacheAccess( SwCache &rCache, const void *pOwner, bool bSeek = true );
+ inline SwCacheAccess( SwCache &rCache, const void *pOwner, bool bSeek );
inline SwCacheAccess( SwCache &rCache, const void *pOwner, const sal_uInt16 nIndex );
public:
diff --git a/sw/source/core/inc/tblrwcl.hxx b/sw/source/core/inc/tblrwcl.hxx
index 86466005e268..c78c2fa798ce 100644
--- a/sw/source/core/inc/tblrwcl.hxx
+++ b/sw/source/core/inc/tblrwcl.hxx
@@ -51,7 +51,7 @@ void InsTableBox( SwDoc* pDoc, SwTableNode* pTableNd,
SwTableBox* pBox, sal_uInt16 nInsPos, sal_uInt16 nCnt = 1 );
SW_DLLPUBLIC void DeleteBox_( SwTable& rTable, SwTableBox* pBox, SwUndo* pUndo,
- bool bCalcNewSize, const bool bCorrBorder = true,
+ bool bCalcNewSize, const bool bCorrBorder,
SwShareBoxFormats* pShareFormats = nullptr );
/**
diff --git a/sw/source/core/inc/txtfrm.hxx b/sw/source/core/inc/txtfrm.hxx
index 43f6210498e6..811800edd5f2 100644
--- a/sw/source/core/inc/txtfrm.hxx
+++ b/sw/source/core/inc/txtfrm.hxx
@@ -294,9 +294,9 @@ public:
bool bSetInReadOnly ) const override;
virtual bool UnitDown(SwPaM *, const SwTwips nOffset,
bool bSetInReadOnly ) const override;
- bool UnitUp_(SwPaM *, const SwTwips nOffset = 0,
+ bool UnitUp_(SwPaM *, const SwTwips nOffset,
bool bSetInReadOnly = false ) const;
- bool UnitDown_(SwPaM *, const SwTwips nOffset = 0,
+ bool UnitDown_(SwPaM *, const SwTwips nOffset,
bool bSetInReadOnly = false ) const;
/**
diff --git a/sw/source/core/inc/unobookmark.hxx b/sw/source/core/inc/unobookmark.hxx
index 6bf1e4fc3f92..0cfa4ede4479 100644
--- a/sw/source/core/inc/unobookmark.hxx
+++ b/sw/source/core/inc/unobookmark.hxx
@@ -220,7 +220,7 @@ private:
protected:
SwXFieldmark(bool isReplacementObject,
- ::sw::mark::IMark* pBkm = nullptr, SwDoc* pDoc = nullptr);
+ ::sw::mark::IMark* pBkm, SwDoc* pDoc = nullptr);
public:
diff --git a/sw/source/core/inc/unofield.hxx b/sw/source/core/inc/unofield.hxx
index 5762e93395b7..360a98cbaf52 100644
--- a/sw/source/core/inc/unofield.hxx
+++ b/sw/source/core/inc/unofield.hxx
@@ -161,7 +161,7 @@ private:
SwXTextField(SwFormatField& rFormat, SwDoc & rDoc);
/// descriptor
- SwXTextField(SwServiceType nServiceId, SwDoc* pDoc=nullptr);
+ SwXTextField(SwServiceType nServiceId, SwDoc* pDoc);
public:
SwServiceType GetServiceId() const;
diff --git a/sw/source/core/inc/unosection.hxx b/sw/source/core/inc/unosection.hxx
index 2e0926432548..175a9efb83c9 100644
--- a/sw/source/core/inc/unosection.hxx
+++ b/sw/source/core/inc/unosection.hxx
@@ -57,7 +57,7 @@ private:
class Impl;
::sw::UnoImplPtr<Impl> m_pImpl;
- SwXTextSection(SwSectionFormat *const pFormat, const bool bIndexHeader = false);
+ SwXTextSection(SwSectionFormat *const pFormat, const bool bIndexHeader);
virtual ~SwXTextSection() override;
diff --git a/sw/source/core/inc/viewimp.hxx b/sw/source/core/inc/viewimp.hxx
index be88ca9d2036..465a68fada6b 100644
--- a/sw/source/core/inc/viewimp.hxx
+++ b/sw/source/core/inc/viewimp.hxx
@@ -170,7 +170,7 @@ public:
void PaintLayer( const SdrLayerID _nLayerID,
SwPrintData const*const pPrintData,
const SwRect& _rRect,
- const Color* _pPageBackgrdColor = nullptr,
+ const Color* _pPageBackgrdColor,
const bool _bIsPageRightToLeft = false,
sdr::contact::ViewObjectContactRedirector* pRedirector = nullptr );
@@ -247,7 +247,7 @@ public:
void InvalidateAccessibleCursorPosition( const SwFrame *pFrame );
/// Invalidate editable state for all accessible frames
- void InvalidateAccessibleEditableState( bool bAllShells = true,
+ void InvalidateAccessibleEditableState( bool bAllShells,
const SwFrame *pFrame=nullptr );
/// Invalidate frame's relation set (for chained frames)
diff --git a/sw/source/core/text/pormulti.hxx b/sw/source/core/text/pormulti.hxx
index 24a9206a51bd..21242978e0b0 100644
--- a/sw/source/core/text/pormulti.hxx
+++ b/sw/source/core/text/pormulti.hxx
@@ -200,7 +200,7 @@ public:
class SwRotatedPortion : public SwMultiPortion
{
public:
- SwRotatedPortion( sal_Int32 nEnd, sal_uInt8 nDir = 1 )
+ SwRotatedPortion( sal_Int32 nEnd, sal_uInt8 nDir )
: SwMultiPortion( nEnd ) { SetDirection( nDir ); }
SwRotatedPortion( const SwMultiCreator& rCreate, sal_Int32 nEnd,
bool bRTL );