summaryrefslogtreecommitdiff
path: root/sw/inc
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/inc
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/inc')
-rw-r--r--sw/inc/IDocumentUndoRedo.hxx2
-rw-r--r--sw/inc/ToxTabStopTokenHandler.hxx2
-rw-r--r--sw/inc/acmplwrd.hxx2
-rw-r--r--sw/inc/calc.hxx2
-rw-r--r--sw/inc/crsrsh.hxx11
-rw-r--r--sw/inc/crstate.hxx2
-rw-r--r--sw/inc/dbmgr.hxx4
-rw-r--r--sw/inc/ddefld.hxx2
-rw-r--r--sw/inc/doc.hxx25
-rw-r--r--sw/inc/docstyle.hxx4
-rw-r--r--sw/inc/docufld.hxx16
-rw-r--r--sw/inc/dpage.hxx2
-rw-r--r--sw/inc/editsh.hxx10
-rw-r--r--sw/inc/expfld.hxx6
-rw-r--r--sw/inc/extinput.hxx2
-rw-r--r--sw/inc/fesh.hxx14
-rw-r--r--sw/inc/fldbas.hxx4
-rw-r--r--sw/inc/fmtcol.hxx8
-rw-r--r--sw/inc/globdoc.hxx2
-rw-r--r--sw/inc/gotodlg.hxx2
-rw-r--r--sw/inc/iodetect.hxx2
-rw-r--r--sw/inc/ndarr.hxx2
-rw-r--r--sw/inc/ndgrf.hxx10
-rw-r--r--sw/inc/ndindex.hxx2
-rw-r--r--sw/inc/ndnotxt.hxx2
-rw-r--r--sw/inc/ndole.hxx4
-rw-r--r--sw/inc/ndtxt.hxx4
-rw-r--r--sw/inc/shellio.hxx2
-rw-r--r--sw/inc/swtable.hxx6
-rw-r--r--sw/inc/tblsel.hxx2
-rw-r--r--sw/inc/txatritr.hxx6
-rw-r--r--sw/inc/txttxmrk.hxx2
-rw-r--r--sw/inc/unoparagraph.hxx2
-rw-r--r--sw/inc/unotbl.hxx2
-rw-r--r--sw/inc/usrfld.hxx2
-rw-r--r--sw/inc/viewsh.hxx6
-rw-r--r--sw/inc/viscrs.hxx2
37 files changed, 89 insertions, 91 deletions
diff --git a/sw/inc/IDocumentUndoRedo.hxx b/sw/inc/IDocumentUndoRedo.hxx
index d05eafda20e2..15a9156100b7 100644
--- a/sw/inc/IDocumentUndoRedo.hxx
+++ b/sw/inc/IDocumentUndoRedo.hxx
@@ -166,7 +166,7 @@ public:
@return true if there is a Redo action, false if none
*/
virtual bool GetFirstRedoInfo(OUString *const o_pStr,
- SwUndoId *const o_pId = nullptr,
+ SwUndoId *const o_pId,
const SwView* pView = nullptr) const = 0;
/** Get comments of Redo actions.
diff --git a/sw/inc/ToxTabStopTokenHandler.hxx b/sw/inc/ToxTabStopTokenHandler.hxx
index 184a60e0b242..9fb7fb6dfc36 100644
--- a/sw/inc/ToxTabStopTokenHandler.hxx
+++ b/sw/inc/ToxTabStopTokenHandler.hxx
@@ -73,7 +73,7 @@ public:
*/
DefaultToxTabStopTokenHandler(sal_uInt32 indexOfSectionNode, const SwPageDesc& defaultPageDescription,
bool tabPositionIsRelativeToParagraphIndent,
- TabStopReferencePolicy referencePolicy = TABSTOPS_RELATIVE_TO_PAGE);
+ TabStopReferencePolicy referencePolicy);
/** Handle a tab stop token.
*
diff --git a/sw/inc/acmplwrd.hxx b/sw/inc/acmplwrd.hxx
index d6101cc84e66..e49934869ee2 100644
--- a/sw/inc/acmplwrd.hxx
+++ b/sw/inc/acmplwrd.hxx
@@ -49,7 +49,7 @@ class SwAutoCompleteWord
void DocumentDying(const SwDoc& rDoc);
public:
- SwAutoCompleteWord( sal_uInt16 nWords = 500, sal_uInt16 nMWrdLen = 10 );
+ SwAutoCompleteWord( sal_uInt16 nWords, sal_uInt16 nMWrdLen = 10 );
~SwAutoCompleteWord();
bool InsertWord( const OUString& rWord, SwDoc& rDoc );
diff --git a/sw/inc/calc.hxx b/sw/inc/calc.hxx
index 8389861d3437..cbcd41864959 100644
--- a/sw/inc/calc.hxx
+++ b/sw/inc/calc.hxx
@@ -136,7 +136,7 @@ struct SwCalcExp : public SwHash
const SwFieldType* pFieldType;
SwCalcExp( const OUString& rStr, const SwSbxValue& rVal,
- const SwFieldType* pFieldType = nullptr );
+ const SwFieldType* pFieldType );
};
SwHash* Find( const OUString& rSrch, SwHash* const * ppTable,
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx
index e83d9eeb829f..ca5a77279b0a 100644
--- a/sw/inc/crsrsh.hxx
+++ b/sw/inc/crsrsh.hxx
@@ -117,7 +117,7 @@ struct SwContentAtPos
OUString sStr;
const SwTextAttr* pFndTextAttr;
- SwContentAtPos( int eGetAtPos = 0xffff )
+ SwContentAtPos( int eGetAtPos )
: eContentAtPos( (IsAttrAtPos)eGetAtPos )
{
aFnd.pField = nullptr;
@@ -289,7 +289,7 @@ protected:
virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) override;
public:
- SwCursorShell( SwDoc& rDoc, vcl::Window *pWin, const SwViewOption *pOpt = nullptr );
+ SwCursorShell( SwDoc& rDoc, vcl::Window *pWin, const SwViewOption *pOpt );
// disguised copy constructor
SwCursorShell( SwCursorShell& rShell, vcl::Window *pWin );
virtual ~SwCursorShell() override;
@@ -374,7 +374,7 @@ public:
bool& bCancel,
FindRanges eRng,
const css::util::SearchOptions2* pSearchOpt,
- const SfxItemSet* rReplSet = nullptr );
+ const SfxItemSet* rReplSet );
// Position the Cursor
// return values:
@@ -640,8 +640,7 @@ public:
bool GotoHeaderText(); ///< jump from the content to the header
bool GotoFooterText(); ///< jump from the content to the footer
// jump to the header/footer of the given or current PageDesc
- bool SetCursorInHdFt( size_t nDescNo,
- bool bInHeader = true );
+ bool SetCursorInHdFt( size_t nDescNo, bool bInHeader );
// is point of cursor in header/footer. pbInHeader return true if it is
// in a headerframe otherwise in a footerframe
bool IsInHeaderFooter( bool* pbInHeader = nullptr ) const;
@@ -663,7 +662,7 @@ public:
bool SelectNxtPrvHyperlink( bool bNext );
bool GotoRefMark( const OUString& rRefMark, sal_uInt16 nSubType,
- sal_uInt16 nSeqNo = 0 );
+ sal_uInt16 nSeqNo );
// get the nth character from the start or end of the current selection
sal_Unicode GetChar( bool bEnd = true, long nOffset = 0 );
diff --git a/sw/inc/crstate.hxx b/sw/inc/crstate.hxx
index 0663b21bc81f..4d59782e1bcd 100644
--- a/sw/inc/crstate.hxx
+++ b/sw/inc/crstate.hxx
@@ -41,7 +41,7 @@ struct SwFillCursorPos
sal_uInt16 nColumnCnt; ///< number of necessary column breaks
sal_Int16 eOrient; ///< paragraph alignment
SwFillMode eMode; ///< desired fill-up rule
- SwFillCursorPos( SwFillMode eMd = FILL_TAB ) :
+ SwFillCursorPos( SwFillMode eMd ) :
nParaCnt( 0 ), nTabCnt( 0 ), nSpaceCnt( 0 ), nColumnCnt( 0 ),
eOrient( css::text::HoriOrientation::NONE ), eMode( eMd )
{}
diff --git a/sw/inc/dbmgr.hxx b/sw/inc/dbmgr.hxx
index 5ae985d9f947..d14b176ba7ee 100644
--- a/sw/inc/dbmgr.hxx
+++ b/sw/inc/dbmgr.hxx
@@ -399,7 +399,7 @@ public:
*/
static OUString LoadAndRegisterDataSource(const DBConnURITypes type, const css::uno::Any &rUnoURI,
const css::uno::Reference < css::beans::XPropertySet > *pSettings,
- const OUString &rURI, const OUString *pPrefix, const OUString *pDestDir = nullptr,
+ const OUString &rURI, const OUString *pPrefix, const OUString *pDestDir,
SwDocShell* pDocShell = nullptr);
/**
Loads a data source from file and registers it.
@@ -407,7 +407,7 @@ public:
Convenience function, which calls GetDBunoURI and has just one mandatory parameter.
In case of success it returns the registered name, otherwise an empty string.
*/
- static OUString LoadAndRegisterDataSource(const OUString& rURI, const OUString *pPrefix, const OUString *pDestDir = nullptr,
+ static OUString LoadAndRegisterDataSource(const OUString& rURI, const OUString *pPrefix, const OUString *pDestDir,
const css::uno::Reference < css::beans::XPropertySet > *pSettings = nullptr);
/// Load the embedded data source of the document and also register it.
diff --git a/sw/inc/ddefld.hxx b/sw/inc/ddefld.hxx
index 4dd95430c87a..e663f613e287 100644
--- a/sw/inc/ddefld.hxx
+++ b/sw/inc/ddefld.hxx
@@ -42,7 +42,7 @@ class SW_DLLPUBLIC SwDDEFieldType : public SwFieldType
public:
SwDDEFieldType( const OUString& rName, const OUString& rCmd,
- SfxLinkUpdateMode = SfxLinkUpdateMode::ONCALL );
+ SfxLinkUpdateMode );
virtual ~SwDDEFieldType() override;
const OUString& GetExpansion() const { return aExpansion; }
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 45d9e2927a82..b36fb70e4c0c 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -606,7 +606,7 @@ public:
( Start < Pos < End ) !!!
(Required for Writers.) */
SwPosFlyFrames GetAllFlyFormats( const SwPaM*,
- bool bDrawAlso = false,
+ bool bDrawAlso,
bool bAsCharAlso = false ) const;
// Because swrtf.cxx and define private public here now.
@@ -633,7 +633,7 @@ public:
bool bCalledFromShell = false );
SwFlyFrameFormat* MakeFlyAndMove( const SwPaM& rPam, const SfxItemSet& rSet,
const SwSelBoxes* pSelBoxes,
- SwFrameFormat *pParent = nullptr );
+ SwFrameFormat *pParent );
//UUUU Helper that checks for unique items for DrawingLayer items of type NameOrIndex
// and evtl. corrects that items to ensure unique names for that type. This call may
@@ -845,7 +845,7 @@ public:
SwFrameFormat* GetFlyNum(size_t nIdx, FlyCntType eType, bool bIgnoreTextBoxes = false );
std::vector<SwFrameFormat const*> GetFlyFrameFormats(
FlyCntType eType,
- bool bIgnoreTextBoxes = false);
+ bool bIgnoreTextBoxes);
// Copy formats in own arrays and return them.
SwFrameFormat *CopyFrameFormat ( const SwFrameFormat& );
@@ -905,7 +905,7 @@ public:
SwPageDesc& GetPageDesc(size_t const i) { return *m_PageDescs[i]; }
SwPageDesc* FindPageDesc(const OUString& rName, size_t* pPos = nullptr) const;
// Just searches the pointer in the m_PageDescs vector!
- bool ContainsPageDesc(const SwPageDesc *pDesc, size_t* pPos = nullptr) const;
+ bool ContainsPageDesc(const SwPageDesc *pDesc, size_t* pPos) const;
/** Copy the complete PageDesc - beyond document and "deep"!
Optionally copying of PoolFormatId, -HlpId can be prevented. */
@@ -952,7 +952,7 @@ public:
bool bExpand = false );
void InsertTableOf( sal_uLong nSttNd, sal_uLong nEndNd,
const SwTOXBase& rTOX,
- const SfxItemSet* pSet = nullptr );
+ const SfxItemSet* pSet );
static SwTOXBase* GetCurTOX( const SwPosition& rPos );
static const SwAttrSet& GetTOXBaseAttrSet(const SwTOXBase& rTOX);
@@ -1210,7 +1210,7 @@ public:
// Split / concatenate boxes in table.
bool SplitTable( const SwSelBoxes& rBoxes, bool bVert,
- sal_uInt16 nCnt = 1, bool bSameHeight = false );
+ sal_uInt16 nCnt, bool bSameHeight = false );
// @return enum TableMergeErr.
sal_uInt16 MergeTable( SwPaM& rPam );
@@ -1277,11 +1277,11 @@ public:
bool UnProtectTables( const SwPaM& rPam );
bool HasTableAnyProtection( const SwPosition* pPos,
const OUString* pTableName,
- bool* pFullTableProtection = nullptr );
+ bool* pFullTableProtection );
// Split table at baseline position, i.e. create a new table.
bool SplitTable( const SwPosition& rPos, sal_uInt16 eMode,
- bool bCalcNewSize = false );
+ bool bCalcNewSize );
/** And vice versa: rPos must be in the table that remains. The flag indicates
whether the current table is merged with the one before or behind it. */
@@ -1333,7 +1333,7 @@ public:
// insert section (the ODF kind of section, not the nodesarray kind)
SwSection * InsertSwSection(SwPaM const& rRange, SwSectionData &,
SwTOXBase const*const pTOXBase,
- SfxItemSet const*const pAttr = nullptr, bool const bUpdate = true);
+ SfxItemSet const*const pAttr, bool const bUpdate = true);
static sal_uInt16 IsInsRegionAvailable( const SwPaM& rRange,
const SwNode** ppSttNd = nullptr );
static SwSection* GetCurrSection( const SwPosition& rPos );
@@ -1397,7 +1397,7 @@ public:
const SwFormatINetFormat* FindINetAttr( const OUString& rName ) const;
// Call into intransparent Basic; expect possible Return String.
- bool ExecMacro( const SvxMacro& rMacro, OUString* pRet, SbxArray* pArgs = nullptr );
+ bool ExecMacro( const SvxMacro& rMacro, OUString* pRet, SbxArray* pArgs );
// Call into intransparent Basic / JavaScript.
sal_uInt16 CallEvent( sal_uInt16 nEvent, const SwCallMouseEvent& rCallEvent,
@@ -1406,8 +1406,7 @@ public:
/** Adjust left margin via object bar (similar to adjustment of numerations).
One can either change the margin "by" adding or subtracting a given
offset or set it "to" this position (bModulus = true). */
- void MoveLeftMargin( const SwPaM& rPam, bool bRight,
- bool bModulus = true );
+ void MoveLeftMargin( const SwPaM& rPam, bool bRight, bool bModulus );
// Query NumberFormatter.
inline SvNumberFormatter* GetNumberFormatter( bool bCreate = true );
@@ -1625,7 +1624,7 @@ public:
SfxObjectShell* CreateCopy(bool bCallInitNew, bool bEmpty) const;
SwNodeIndex AppendDoc(const SwDoc& rSource, sal_uInt16 nStartPageNumber,
- bool bDeletePrevious, int physicalPageOffset = 0,
+ bool bDeletePrevious, int physicalPageOffset,
const sal_uLong nDocNo = 1);
/**
diff --git a/sw/inc/docstyle.hxx b/sw/inc/docstyle.hxx
index 79411a945b77..cd2cc841f1e2 100644
--- a/sw/inc/docstyle.hxx
+++ b/sw/inc/docstyle.hxx
@@ -175,7 +175,7 @@ class SwStyleSheetIterator : public SfxStyleSheetIterator, public SfxListener
public:
SwStyleSheetIterator( SwDocStyleSheetPool* pBase,
- SfxStyleFamily eFam, sal_uInt16 n=SFXSTYLEBIT_ALL );
+ SfxStyleFamily eFam, sal_uInt16 n );
virtual ~SwStyleSheetIterator() override;
virtual sal_uInt16 Count() override;
@@ -201,7 +201,7 @@ class SwDocStyleSheetPool : public SfxStyleSheetBasePool
using SfxStyleSheetBasePool::Find;
public:
- SwDocStyleSheetPool( SwDoc&, bool bOrganizer = false );
+ SwDocStyleSheetPool( SwDoc&, bool bOrganizer );
virtual SfxStyleSheetBase& Make(const OUString&, SfxStyleFamily,
sal_uInt16 nMask = SFXSTYLEBIT_ALL) override;
diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx
index 4464dc65f3fc..2736161e381d 100644
--- a/sw/inc/docufld.hxx
+++ b/sw/inc/docufld.hxx
@@ -151,7 +151,7 @@ class SW_DLLPUBLIC SwPageNumberField : public SwField
sal_uInt16 m_nMaxPage;
public:
- SwPageNumberField(SwPageNumberFieldType*, sal_uInt16 nSub = PG_RANDOM,
+ SwPageNumberField(SwPageNumberFieldType*, sal_uInt16 nSub,
sal_uInt32 nFormat = 0, short nOff = 0,
sal_uInt16 const nPageNumber = 0,
sal_uInt16 const nMaxPage = 0);
@@ -187,7 +187,7 @@ class SwAuthorField : public SwField
OUString aContent;
public:
- SwAuthorField(SwAuthorFieldType*, sal_uInt32 nFormat = 0);
+ SwAuthorField(SwAuthorFieldType*, sal_uInt32 nFormat);
virtual OUString Expand() const override;
virtual SwField* Copy() const override;
@@ -214,7 +214,7 @@ class SW_DLLPUBLIC SwFileNameField : public SwField
OUString aContent;
public:
- SwFileNameField(SwFileNameFieldType*, sal_uInt32 nFormat = 0);
+ SwFileNameField(SwFileNameFieldType*, sal_uInt32 nFormat);
virtual OUString Expand() const override;
virtual SwField* Copy() const override;
@@ -239,7 +239,7 @@ public:
class SW_DLLPUBLIC SwTemplNameField : public SwField
{
public:
- SwTemplNameField(SwTemplNameFieldType*, sal_uInt32 nFormat = 0);
+ SwTemplNameField(SwTemplNameFieldType*, sal_uInt32 nFormat);
virtual OUString Expand() const override;
virtual SwField* Copy() const override;
@@ -267,7 +267,7 @@ class SW_DLLPUBLIC SwDocStatField : public SwField
public:
SwDocStatField( SwDocStatFieldType*,
- sal_uInt16 nSubType = 0, sal_uInt32 nFormat = 0);
+ sal_uInt16 nSubType, sal_uInt32 nFormat = 0);
void ChangeExpansion( const SwFrame* pFrame );
@@ -535,7 +535,7 @@ class SwExtUserField : public SwField
sal_uInt16 nType;
public:
- SwExtUserField(SwExtUserFieldType*, sal_uInt16 nSub, sal_uInt32 nFormat=0);
+ SwExtUserField(SwExtUserFieldType*, sal_uInt16 nSub, sal_uInt32 nFormat);
virtual OUString Expand() const override;
virtual SwField* Copy() const override;
@@ -569,7 +569,7 @@ class SwRefPageSetField : public SwField
bool bOn;
public:
- SwRefPageSetField( SwRefPageSetFieldType*, short nOff = 0,
+ SwRefPageSetField( SwRefPageSetFieldType*, short nOff,
bool bOn = true );
virtual OUString Expand() const override;
@@ -676,7 +676,7 @@ class SwScriptField : public SwField
public:
SwScriptField( SwScriptFieldType*, const OUString& rType,
- const OUString& rCode, bool bURL=false );
+ const OUString& rCode, bool bURL );
virtual OUString GetDescription() const override;
diff --git a/sw/inc/dpage.hxx b/sw/inc/dpage.hxx
index 3bd14a21f176..75d63b08a03b 100644
--- a/sw/inc/dpage.hxx
+++ b/sw/inc/dpage.hxx
@@ -34,7 +34,7 @@ class SwDPage : public FmFormPage, public SdrObjUserCall
SwDoc* pDoc;
public:
- explicit SwDPage(SwDrawModel& rNewModel, bool bMasterPage=false);
+ explicit SwDPage(SwDrawModel& rNewModel, bool bMasterPage);
virtual ~SwDPage() override;
virtual SwDPage* Clone() const override;
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx
index 20a24a931536..2bc0d307c915 100644
--- a/sw/inc/editsh.hxx
+++ b/sw/inc/editsh.hxx
@@ -531,7 +531,7 @@ public:
void ChgNumRuleFormats( const SwNumRule& rRule );
/// Set (and query if) a numbering with StartFlag starts at current PointPos.
- void SetNumRuleStart( bool bFlag, SwPaM* pCursor = nullptr );
+ void SetNumRuleStart( bool bFlag, SwPaM* pCursor );
bool IsNumRuleStart( SwPaM* pPaM = nullptr ) const;
void SetNodeNumStart( sal_uInt16 nStt );
@@ -550,7 +550,7 @@ public:
Reset UndoHistory at Save, SaveAs, Create ??? */
void DoUndo( bool bOn = true );
bool DoesUndo() const;
- void DoGroupUndo( bool bUn = true );
+ void DoGroupUndo( bool bUn );
bool DoesGroupUndo() const;
void DelAllUndoObj();
@@ -660,13 +660,13 @@ public:
including styles. */
sal_uInt16 MakeGlossary( SwTextBlocks& rToFill, const OUString& rName,
const OUString& rShortName, bool bSaveRelFile,
- const OUString* pOnlyText=nullptr );
+ const OUString* pOnlyText );
/// Save complete content of doc as glossary.
sal_uInt16 SaveGlossaryDoc( SwTextBlocks& rGlossary, const OUString& rName,
const OUString& rShortName,
bool bSaveRelFile,
- bool bOnlyText = false );
+ bool bOnlyText );
// Linguistics...
/// Save selections.
@@ -937,7 +937,7 @@ public:
sal_uInt16 GetScalingOfSelectedText() const;
/// Ctor/Dtor.
- SwEditShell( SwDoc&, vcl::Window*, const SwViewOption *pOpt = nullptr );
+ SwEditShell( SwDoc&, vcl::Window*, const SwViewOption *pOpt );
/// Copy-Constructor in disguise.
SwEditShell( SwEditShell&, vcl::Window* );
diff --git a/sw/inc/expfld.hxx b/sw/inc/expfld.hxx
index 9e62ee9facc8..618af04ba462 100644
--- a/sw/inc/expfld.hxx
+++ b/sw/inc/expfld.hxx
@@ -95,7 +95,7 @@ class SW_DLLPUBLIC SwGetExpField : public SwFormulaField
public:
SwGetExpField( SwGetExpFieldType*, const OUString& rFormel,
- sal_uInt16 nSubType = nsSwGetSetExpType::GSE_EXPR, sal_uLong nFormat = 0);
+ sal_uInt16 nSubType, sal_uLong nFormat = 0);
virtual void SetValue( const double& rVal ) override;
virtual void SetLanguage(sal_uInt16 nLng) override;
@@ -316,7 +316,7 @@ public:
SwInputFieldType* pFieldType,
const OUString& rContent,
const OUString& rPrompt,
- sal_uInt16 nSubType = 0,
+ sal_uInt16 nSubType,
sal_uLong nFormat = 0,
bool bIsFormField = true );
virtual ~SwInputField() override;
@@ -400,7 +400,7 @@ class SwTableField : public SwValueField, public SwTableFormula
public:
SwTableField( SwTableFieldType*, const OUString& rFormel,
- sal_uInt16 nSubType = 0, sal_uLong nFormat = 0);
+ sal_uInt16 nSubType, sal_uLong nFormat = 0);
virtual void SetValue( const double& rVal ) override;
virtual sal_uInt16 GetSubType() const override;
diff --git a/sw/inc/extinput.hxx b/sw/inc/extinput.hxx
index f6bb44beec91..de253f8f5a29 100644
--- a/sw/inc/extinput.hxx
+++ b/sw/inc/extinput.hxx
@@ -33,7 +33,7 @@ class SwExtTextInput : public SwPaM
bool bIsOverwriteCursor : 1;
LanguageType eInputLanguage;
public:
- SwExtTextInput( const SwPaM& rPam, Ring* pRing = nullptr );
+ SwExtTextInput( const SwPaM& rPam, Ring* pRing );
virtual ~SwExtTextInput() override;
void SetInputData( const CommandExtTextInputData& rData );
diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx
index 4ee0a6a60391..a4e2b65b6101 100644
--- a/sw/inc/fesh.hxx
+++ b/sw/inc/fesh.hxx
@@ -250,7 +250,7 @@ public:
using SwEditShell::Insert;
- SwFEShell( SwDoc& rDoc, vcl::Window *pWin, const SwViewOption *pOpt = nullptr );
+ SwFEShell( SwDoc& rDoc, vcl::Window *pWin, const SwViewOption *pOpt );
SwFEShell( SwEditShell& rShell, vcl::Window *pWin );
virtual ~SwFEShell() override;
@@ -419,7 +419,7 @@ public:
const SwFrameFormat* GetFlyNum(size_t nIdx, FlyCntType eType, bool bIgnoreTextBoxes = false) const;
std::vector<SwFrameFormat const*> GetFlyFrameFormats(
- FlyCntType eType, bool bIgnoreTextBoxes = false);
+ FlyCntType eType, bool bIgnoreTextBoxes);
/// If a fly is selected, it draws cursor into the first ContentFrame.
const SwFrameFormat* SelFlyGrabCursor();
@@ -471,7 +471,7 @@ public:
/// Jump to named Fly (graphic/OLE).
bool GotoFly( const OUString& rName, FlyCntType eType,
- bool bSelFrame = true );
+ bool bSelFrame );
/// Position is a graphic with URL?
const SwFrameFormat* IsURLGrfAtPos( const Point& rPt, OUString* pURL = nullptr,
@@ -570,7 +570,7 @@ public:
void Insert(const OUString& rGrfName,
const OUString& rFltName,
const Graphic* pGraphic,
- const SfxItemSet* pFlyAttrSet = nullptr );
+ const SfxItemSet* pFlyAttrSet );
/// Insertion of a drawing object which have to be already inserted in the DrawModel.
void InsertDrawObj( SdrObject& rDrawObj,
@@ -645,7 +645,7 @@ public:
@return error via enum. */
/// Split cell vertically or horizontally.
- bool SplitTab( bool bVert, sal_uInt16 nCnt = 1, bool bSameHeight = false );
+ bool SplitTab( bool bVert, sal_uInt16 nCnt, bool bSameHeight = false );
bool Sort(const SwSortOptions&); //Sortieren.
void SetRowHeight( const SwFormatFrameSize &rSz );
@@ -686,7 +686,7 @@ public:
const Point &rPt );
/// pEnd will be used during MouseMove
- bool SelTableRowCol( const Point& rPt, const Point* pEnd, bool bRowDrag = false );
+ bool SelTableRowCol( const Point& rPt, const Point* pEnd, bool bRowDrag );
void GetTabRows( SwTabCols &rToFill ) const;
void SetTabRows( const SwTabCols &rNew, bool bCurColOnly );
@@ -698,7 +698,7 @@ public:
void UnProtectCells(); ///< Refers to table selection.
void UnProtectTables(); ///< Unprotect all tables in selection.
bool HasTableAnyProtection( const OUString* pTableName,
- bool* pFullTableProtection = nullptr );
+ bool* pFullTableProtection );
bool CanUnProtectCells() const;
sal_uInt16 GetRowsToRepeat() const;
diff --git a/sw/inc/fldbas.hxx b/sw/inc/fldbas.hxx
index 0c350e8f0bf0..094c5fad7a8e 100644
--- a/sw/inc/fldbas.hxx
+++ b/sw/inc/fldbas.hxx
@@ -401,7 +401,7 @@ private:
double m_fValue;
protected:
- SwValueField( SwValueFieldType* pFieldType, sal_uInt32 nFormat = 0, sal_uInt16 nLang = LANGUAGE_SYSTEM, const double fVal = 0.0 );
+ SwValueField( SwValueFieldType* pFieldType, sal_uInt32 nFormat, sal_uInt16 nLang = LANGUAGE_SYSTEM, const double fVal = 0.0 );
SwValueField( const SwValueField& rField );
public:
@@ -427,7 +427,7 @@ private:
OUString m_sFormula;
protected:
- SwFormulaField( SwValueFieldType* pFieldType, sal_uInt32 nFormat = 0, const double fVal = 0.0 );
+ SwFormulaField( SwValueFieldType* pFieldType, sal_uInt32 nFormat, const double fVal = 0.0 );
SwFormulaField( const SwFormulaField& rField );
public:
diff --git a/sw/inc/fmtcol.hxx b/sw/inc/fmtcol.hxx
index 1a5269356b9d..5c2045bad2c3 100644
--- a/sw/inc/fmtcol.hxx
+++ b/sw/inc/fmtcol.hxx
@@ -77,7 +77,7 @@ protected:
}
SwTextFormatColl( SwAttrPool& rPool, const OUString &rFormatCollName,
- SwTextFormatColl* pDerFrom = nullptr,
+ SwTextFormatColl* pDerFrom,
sal_uInt16 nFormatWh = RES_TXTFMTCOLL )
: SwFormatColl(rPool, rFormatCollName, aTextFormatCollSetRange, pDerFrom, nFormatWh)
, mbStayAssignedToListLevelOfOutlineStyle(false)
@@ -145,7 +145,7 @@ protected:
{}
SwGrfFormatColl( SwAttrPool& rPool, const OUString &rFormatCollName,
- SwGrfFormatColl* pDerFrom = nullptr )
+ SwGrfFormatColl* pDerFrom )
: SwFormatColl( rPool, rFormatCollName, aGrfFormatCollSetRange,
pDerFrom, RES_GRFFMTCOLL )
{}
@@ -183,7 +183,7 @@ class SW_DLLPUBLIC SwCollCondition : public SwClient
public:
SwCollCondition( SwTextFormatColl* pColl, sal_uLong nMasterCond,
- sal_uLong nSubCond = 0 );
+ sal_uLong nSubCond );
SwCollCondition( SwTextFormatColl* pColl, sal_uLong nMasterCond,
const OUString& rSubExp );
virtual ~SwCollCondition() override;
@@ -217,7 +217,7 @@ protected:
SwFormatCollConditions m_CondColls;
SwConditionTextFormatColl( SwAttrPool& rPool, const OUString &rFormatCollName,
- SwTextFormatColl* pDerFrom = nullptr )
+ SwTextFormatColl* pDerFrom )
: SwTextFormatColl( rPool, rFormatCollName, pDerFrom, RES_CONDTXTFMTCOLL )
{}
diff --git a/sw/inc/globdoc.hxx b/sw/inc/globdoc.hxx
index fa74c335affc..e63f08f62def 100644
--- a/sw/inc/globdoc.hxx
+++ b/sw/inc/globdoc.hxx
@@ -27,7 +27,7 @@ public:
SFX_DECL_OBJECTFACTORY();
- SwGlobalDocShell(SfxObjectCreateMode eMode = SfxObjectCreateMode::EMBEDDED);
+ SwGlobalDocShell(SfxObjectCreateMode eMode);
virtual ~SwGlobalDocShell() override;
virtual void FillClass( SvGlobalName * pClassName,
diff --git a/sw/inc/gotodlg.hxx b/sw/inc/gotodlg.hxx
index 6d1d83339542..734e9cde3287 100644
--- a/sw/inc/gotodlg.hxx
+++ b/sw/inc/gotodlg.hxx
@@ -28,7 +28,7 @@ class SwWrtShell;
class SwGotoPageDlg : public ModalDialog
{
public:
- SwGotoPageDlg(vcl::Window *parent = nullptr, SfxBindings* _pBindings = nullptr);
+ SwGotoPageDlg(vcl::Window *parent, SfxBindings* _pBindings = nullptr);
virtual ~SwGotoPageDlg() override;
virtual void dispose() override;
diff --git a/sw/inc/iodetect.hxx b/sw/inc/iodetect.hxx
index 91ee8ae56d21..cce9b3225095 100644
--- a/sw/inc/iodetect.hxx
+++ b/sw/inc/iodetect.hxx
@@ -96,7 +96,7 @@ public:
static bool IsValidStgFilter( const css::uno::Reference < css::embed::XStorage >& rStg, const SfxFilter& rFilter);
static bool IsDetectableText( const sal_Char* pBuf, sal_uLong &rLen,
- rtl_TextEncoding *pCharSet, bool *pSwap=nullptr, LineEnd *pLineEnd=nullptr, bool bEncodedFilter = false );
+ rtl_TextEncoding *pCharSet, bool *pSwap, LineEnd *pLineEnd=nullptr, bool bEncodedFilter = false );
static const OUString GetSubStorageName( const SfxFilter& rFltr );
};
diff --git a/sw/inc/ndarr.hxx b/sw/inc/ndarr.hxx
index f5861b088b51..620ffe1fb132 100644
--- a/sw/inc/ndarr.hxx
+++ b/sw/inc/ndarr.hxx
@@ -248,7 +248,7 @@ public:
static SwTableNode* InsertTable( const SwNodeIndex& rNdIdx,
sal_uInt16 nBoxes, SwTextFormatColl* pContentTextColl,
sal_uInt16 nLines, sal_uInt16 nRepeat,
- SwTextFormatColl* pHeadlineTextColl = nullptr,
+ SwTextFormatColl* pHeadlineTextColl,
const SwAttrSet * pAttrSet = nullptr);
/// Create balanced table from selected range.
diff --git a/sw/inc/ndgrf.hxx b/sw/inc/ndgrf.hxx
index d43b283383e9..162ac0cfeffd 100644
--- a/sw/inc/ndgrf.hxx
+++ b/sw/inc/ndgrf.hxx
@@ -56,16 +56,16 @@ class SW_DLLPUBLIC SwGrfNode: public SwNoTextNode
const OUString& rGrfName, const OUString& rFltName,
const Graphic* pGraphic,
SwGrfFormatColl* pGrfColl,
- SwAttrSet* pAutoAttr = nullptr );
+ SwAttrSet* pAutoAttr );
///< Ctor for reading (SW/G) without graphics.
SwGrfNode( const SwNodeIndex& rWhere,
const OUString& rGrfName, const OUString& rFltName,
SwGrfFormatColl* pGrfColl,
- SwAttrSet* pAutoAttr = nullptr );
+ SwAttrSet* pAutoAttr );
SwGrfNode( const SwNodeIndex& rWhere,
const GraphicObject& rGrfObj,
SwGrfFormatColl* pGrfColl,
- SwAttrSet* pAutoAttr = nullptr );
+ SwAttrSet* pAutoAttr );
void InsertLink( const OUString& rGrfName, const OUString& rFltName );
bool ImportGraphic( SvStream& rStrm );
@@ -126,9 +126,9 @@ public:
void SetGraphic(const Graphic& rGraphic, const OUString& rLink);
/// wrappers for non-const calls at GraphicObject
- void StartGraphicAnimation(OutputDevice* pOut, const Point& rPt, const Size& rSz, long nExtraData, OutputDevice* pFirstFrameOutDev = nullptr)
+ void StartGraphicAnimation(OutputDevice* pOut, const Point& rPt, const Size& rSz, long nExtraData, OutputDevice* pFirstFrameOutDev)
{ maGrfObj.StartAnimation(pOut, rPt, rSz, nExtraData, pFirstFrameOutDev); }
- void StopGraphicAnimation(OutputDevice* pOut, long nExtraData = 0) { maGrfObj.StopAnimation(pOut, nExtraData); }
+ void StopGraphicAnimation(OutputDevice* pOut, long nExtraData) { maGrfObj.StopAnimation(pOut, nExtraData); }
virtual Size GetTwipSize() const override;
void SetTwipSize( const Size& rSz );
diff --git a/sw/inc/ndindex.hxx b/sw/inc/ndindex.hxx
index f2e2d41de0b9..435a313e9496 100644
--- a/sw/inc/ndindex.hxx
+++ b/sw/inc/ndindex.hxx
@@ -140,7 +140,7 @@ public:
SwNodeRange( const SwNodeRange &rRange )
: aStart( rRange.aStart ), aEnd( rRange.aEnd ) {};
- SwNodeRange( SwNodes& rNds, sal_uLong nSttIdx = 0, sal_uLong nEndIdx = 0 )
+ SwNodeRange( SwNodes& rNds, sal_uLong nSttIdx, sal_uLong nEndIdx = 0 )
: aStart( rNds, nSttIdx ), aEnd( rNds, nEndIdx ) {};
SwNodeRange( const SwNodeIndex& rS, long nSttDiff, const SwNodeIndex& rE, long nEndDiff = 0 )
diff --git a/sw/inc/ndnotxt.hxx b/sw/inc/ndnotxt.hxx
index cb8c4905eb76..69347e9c7eb0 100644
--- a/sw/inc/ndnotxt.hxx
+++ b/sw/inc/ndnotxt.hxx
@@ -46,7 +46,7 @@ class SW_DLLPUBLIC SwNoTextNode : public SwContentNode
protected:
SwNoTextNode( const SwNodeIndex &rWhere, const sal_uInt8 nNdType,
- SwGrfFormatColl *pGrColl, SwAttrSet* pAutoAttr = nullptr );
+ SwGrfFormatColl *pGrColl, SwAttrSet* pAutoAttr );
public:
virtual ~SwNoTextNode() override;
diff --git a/sw/inc/ndole.hxx b/sw/inc/ndole.hxx
index a20a4cced8d4..28d427ddc022 100644
--- a/sw/inc/ndole.hxx
+++ b/sw/inc/ndole.hxx
@@ -93,13 +93,13 @@ class SW_DLLPUBLIC SwOLENode: public SwNoTextNode
SwOLENode( const SwNodeIndex &rWhere,
const svt::EmbeddedObjectRef&,
SwGrfFormatColl *pGrfColl,
- SwAttrSet* pAutoAttr = nullptr );
+ SwAttrSet* pAutoAttr );
SwOLENode( const SwNodeIndex &rWhere,
const OUString &rName,
sal_Int64 nAspect,
SwGrfFormatColl *pGrfColl,
- SwAttrSet* pAutoAttr = nullptr );
+ SwAttrSet* pAutoAttr );
SwOLENode( const SwOLENode & ) = delete;
diff --git a/sw/inc/ndtxt.hxx b/sw/inc/ndtxt.hxx
index a1807a1e8f4b..0d481b1b751d 100644
--- a/sw/inc/ndtxt.hxx
+++ b/sw/inc/ndtxt.hxx
@@ -329,7 +329,7 @@ public:
void CopyText( SwTextNode * const pDest,
const SwIndex &rStart,
const sal_Int32 nLen,
- const bool bForceCopyOfAllAttrs = false );
+ const bool bForceCopyOfAllAttrs );
void CopyText( SwTextNode * const pDest,
const SwIndex &rDestStart,
const SwIndex &rStart,
@@ -689,7 +689,7 @@ public:
const bool bWithSpacesForLevel = false,
const bool bWithFootnote = true ) const;
bool GetExpandText( SwTextNode& rDestNd, const SwIndex* pDestIdx,
- sal_Int32 nIdx, sal_Int32 nLen = -1,
+ sal_Int32 nIdx, sal_Int32 nLen,
bool bWithNum = false, bool bWithFootnote = true,
bool bReplaceTabsWithSpaces = false ) const;
diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx
index df75e6f20444..cf70536a1820 100644
--- a/sw/inc/shellio.hxx
+++ b/sw/inc/shellio.hxx
@@ -505,7 +505,7 @@ public:
SwWriter( const css::uno::Reference < css::embed::XStorage >&, SwDoc& );
- SwWriter( SfxMedium&, SwCursorShell &, bool bWriteAll = false );
+ SwWriter( SfxMedium&, SwCursorShell &, bool bWriteAll );
SwWriter( SfxMedium&, SwDoc & );
};
diff --git a/sw/inc/swtable.hxx b/sw/inc/swtable.hxx
index 596bd6b9b9f3..5d31a4383797 100644
--- a/sw/inc/swtable.hxx
+++ b/sw/inc/swtable.hxx
@@ -399,9 +399,9 @@ class SW_DLLPUBLIC SwTableBox: public SwClient //Client of FrameFormat.
public:
- SwTableBox( SwTableBoxFormat*, sal_uInt16 nLines, SwTableLine *pUp = nullptr );
- SwTableBox( SwTableBoxFormat*, const SwStartNode&, SwTableLine *pUp = nullptr );
- SwTableBox( SwTableBoxFormat*, const SwNodeIndex&, SwTableLine *pUp = nullptr );
+ SwTableBox( SwTableBoxFormat*, sal_uInt16 nLines, SwTableLine *pUp );
+ SwTableBox( SwTableBoxFormat*, const SwStartNode&, SwTableLine *pUp );
+ SwTableBox( SwTableBoxFormat*, const SwNodeIndex&, SwTableLine *pUp );
virtual ~SwTableBox() override;
SwTableLines &GetTabLines() { return m_aLines; }
diff --git a/sw/inc/tblsel.hxx b/sw/inc/tblsel.hxx
index 88cede16fa5c..c1f938dc6f62 100644
--- a/sw/inc/tblsel.hxx
+++ b/sw/inc/tblsel.hxx
@@ -200,7 +200,7 @@ class FndLine_
FndLine_& operator=(FndLine_ const&) = delete;
public:
- FndLine_(SwTableLine* pL, FndBox_* pFB=nullptr) : pLine(pL), pUpper(pFB) {}
+ FndLine_(SwTableLine* pL, FndBox_* pFB) : pLine(pL), pUpper(pFB) {}
const FndBoxes_t& GetBoxes() const { return m_Boxes; }
FndBoxes_t& GetBoxes() { return m_Boxes; }
const SwTableLine* GetLine() const { return pLine; }
diff --git a/sw/inc/txatritr.hxx b/sw/inc/txatritr.hxx
index 665df194f29d..dfb44747a810 100644
--- a/sw/inc/txatritr.hxx
+++ b/sw/inc/txatritr.hxx
@@ -38,7 +38,7 @@ class SwScriptIterator
bool bForward;
public:
- SwScriptIterator( const OUString& rStr, sal_Int32 nStart = 0,
+ SwScriptIterator( const OUString& rStr, sal_Int32 nStart,
bool bFrwrd = true );
bool Next();
@@ -63,7 +63,7 @@ class SwTextAttrIterator
public:
SwTextAttrIterator( const SwTextNode& rTextNd, sal_uInt16 nWhichId,
- sal_Int32 nStart = 0 );
+ sal_Int32 nStart );
bool Next();
@@ -74,7 +74,7 @@ public:
class SwLanguageIterator : public SwTextAttrIterator
{
public:
- SwLanguageIterator( const SwTextNode& rTextNode, sal_Int32 nStart = 0 )
+ SwLanguageIterator( const SwTextNode& rTextNode, sal_Int32 nStart )
: SwTextAttrIterator( rTextNode, RES_CHRATR_LANGUAGE, nStart )
{}
diff --git a/sw/inc/txttxmrk.hxx b/sw/inc/txttxmrk.hxx
index 4a5f29ec5b7e..77c043420e29 100644
--- a/sw/inc/txttxmrk.hxx
+++ b/sw/inc/txttxmrk.hxx
@@ -32,7 +32,7 @@ class SwTextTOXMark : public SwTextAttrEnd
public:
SwTextTOXMark( SwTOXMark& rAttr,
- sal_Int32 const nStart, sal_Int32 const*const pEnd = nullptr);
+ sal_Int32 const nStart, sal_Int32 const*const pEnd);
virtual ~SwTextTOXMark() override;
virtual sal_Int32 *GetEnd() override; // SwTextAttr
diff --git a/sw/inc/unoparagraph.hxx b/sw/inc/unoparagraph.hxx
index c15d3db4a6ee..a9a545523757 100644
--- a/sw/inc/unoparagraph.hxx
+++ b/sw/inc/unoparagraph.hxx
@@ -74,7 +74,7 @@ private:
SwXParagraph(css::uno::Reference< css::text::XText > const & xParent,
SwTextNode & rTextNode,
- const sal_Int32 nSelStart = -1, const sal_Int32 nSelEnd = - 1);
+ const sal_Int32 nSelStart, const sal_Int32 nSelEnd = - 1);
/// descriptor
SwXParagraph();
diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx
index 498fe5ebbe9b..329e758afd07 100644
--- a/sw/inc/unotbl.hxx
+++ b/sw/inc/unotbl.hxx
@@ -91,7 +91,7 @@ protected:
virtual void SwClientNotify(const SwModify&, const SfxHint&) override;
public:
- SwXCell(SwFrameFormat* pTableFormat, SwTableBox* pBox, size_t nPos = NOTFOUND);
+ SwXCell(SwFrameFormat* pTableFormat, SwTableBox* pBox, size_t nPos);
SwXCell(SwFrameFormat* pTableFormat, const SwStartNode& rStartNode); // XML import interface
diff --git a/sw/inc/usrfld.hxx b/sw/inc/usrfld.hxx
index 8f57b78c4787..325c0ae9ab70 100644
--- a/sw/inc/usrfld.hxx
+++ b/sw/inc/usrfld.hxx
@@ -95,7 +95,7 @@ class SW_DLLPUBLIC SwUserField : public SwValueField
virtual SwField* Copy() const override;
public:
- SwUserField(SwUserFieldType*, sal_uInt16 nSub = 0, sal_uInt32 nFormat = 0);
+ SwUserField(SwUserFieldType*, sal_uInt16 nSub, sal_uInt32 nFormat = 0);
virtual sal_uInt16 GetSubType() const override;
virtual void SetSubType(sal_uInt16 nSub) override;
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index a32babef0f8f..1d5a34b6c343 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -206,7 +206,7 @@ public:
inline void StartAction();
void ImplStartAction();
inline void EndAction( const bool bIdleEnd = false );
- void ImplEndAction( const bool bIdleEnd = false );
+ void ImplEndAction( const bool bIdleEnd );
sal_uInt16 ActionCount() const { return mnStartAction; }
bool ActionPend() const { return mnStartAction != 0; }
bool IsInEndAction() const { return mbInEndAction; }
@@ -543,10 +543,10 @@ public:
SwAccessibleMap* GetAccessibleMap();
- SwViewShell( SwViewShell&, vcl::Window *pWin = nullptr, OutputDevice *pOut = nullptr,
+ SwViewShell( SwViewShell&, vcl::Window *pWin, OutputDevice *pOut = nullptr,
long nFlags = 0 );
SwViewShell( SwDoc& rDoc, vcl::Window *pWin,
- const SwViewOption *pOpt = nullptr, OutputDevice *pOut = nullptr,
+ const SwViewOption *pOpt, OutputDevice *pOut = nullptr,
long nFlags = 0 );
virtual ~SwViewShell() override;
diff --git a/sw/inc/viscrs.hxx b/sw/inc/viscrs.hxx
index e7714f027a90..c5ba1947424b 100644
--- a/sw/inc/viscrs.hxx
+++ b/sw/inc/viscrs.hxx
@@ -128,7 +128,7 @@ private:
public:
SwShellCursor( const SwCursorShell& rCursorSh, const SwPosition &rPos );
SwShellCursor( const SwCursorShell& rCursorSh, const SwPosition &rPos,
- const Point& rPtPos, SwPaM* pRing = nullptr );
+ const Point& rPtPos, SwPaM* pRing );
// note: *intentionally* links the new shell cursor into the old one's Ring
SwShellCursor( SwShellCursor& );
virtual ~SwShellCursor() override;