summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-26 16:07:46 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-04-28 08:08:52 +0200
commitedd0d35590fc368c6c06a9bb5c108aacbc742371 (patch)
tree467434c8c07ae5291b3347fe326cad12cc08f1ba /sw
parenta3783c0af4bd21eb9c001aadc60c660c06a47779 (diff)
loplugin:countusersofdefaultparams
Change-Id: I84868b3115c534a8240394283cc3beedf8cb3a80 Reviewed-on: https://gerrit.libreoffice.org/53543 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/inc/crsrsh.hxx2
-rw-r--r--sw/inc/docsh.hxx2
-rw-r--r--sw/inc/docufld.hxx2
-rw-r--r--sw/inc/pam.hxx6
-rw-r--r--sw/inc/swcrsr.hxx4
-rw-r--r--sw/source/core/undo/untbl.cxx2
-rw-r--r--sw/source/filter/html/svxcss1.hxx2
-rw-r--r--sw/source/filter/html/wrthtml.hxx2
-rw-r--r--sw/source/filter/ww8/ww8scan.hxx2
-rw-r--r--sw/source/uibase/inc/frmdlg.hxx2
-rw-r--r--sw/source/uibase/inc/wrtsh.hxx2
11 files changed, 14 insertions, 14 deletions
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx
index 48f7c7a57d17..98a83f08b1f2 100644
--- a/sw/inc/crsrsh.hxx
+++ b/sw/inc/crsrsh.hxx
@@ -414,7 +414,7 @@ public:
* stack
* @return <true> if there was one on the stack, <false> otherwise
*/
- bool Pop(PopMode = PopMode::DeleteStack);
+ bool Pop(PopMode);
/*
* Combine 2 Cursors.
* Delete the topmost from the stack and move its Mark into the current.
diff --git a/sw/inc/docsh.hxx b/sw/inc/docsh.hxx
index ebd823291046..0be7ea783433 100644
--- a/sw/inc/docsh.hxx
+++ b/sw/inc/docsh.hxx
@@ -111,7 +111,7 @@ class SW_DLLPUBLIC SwDocShell
/// Make DocInfo known to the Doc.
SAL_DLLPRIVATE virtual VclPtr<SfxDocumentInfoDialog> CreateDocumentInfoDialog(const SfxItemSet &) override;
/// OLE-stuff
- SAL_DLLPRIVATE virtual void Draw( OutputDevice*, const JobSetup&, sal_uInt16 = ASPECT_CONTENT) override;
+ SAL_DLLPRIVATE virtual void Draw( OutputDevice*, const JobSetup&, sal_uInt16 nAspect) override;
/// Methods for StyleSheets
diff --git a/sw/inc/docufld.hxx b/sw/inc/docufld.hxx
index fd699b563356..db58e2dd2f49 100644
--- a/sw/inc/docufld.hxx
+++ b/sw/inc/docufld.hxx
@@ -308,7 +308,7 @@ public:
bool bConditional,
const OUString& rCond,
const OUString& rText,
- bool bHidden = false,
+ bool bHidden,
sal_uInt16 nSubType = TYP_HIDDENTXTFLD);
SwHiddenTextField( SwHiddenTextFieldType*,
diff --git a/sw/inc/pam.hxx b/sw/inc/pam.hxx
index f5840c0d1a4d..968d20c91f7d 100644
--- a/sw/inc/pam.hxx
+++ b/sw/inc/pam.hxx
@@ -185,13 +185,13 @@ public:
bool bSearchInNotes,
utl::TextSearch& rSText,
SwMoveFnCollection const & fnMove,
- const SwPaM *pPam =nullptr, bool bInReadOnly = false);
+ const SwPaM *pPam, bool bInReadOnly = false);
bool Find( const SwFormat& rFormat,
SwMoveFnCollection const & fnMove,
- const SwPaM *pPam =nullptr, bool bInReadOnly = false);
+ const SwPaM *pPam, bool bInReadOnly = false);
bool Find( const SfxPoolItem& rAttr, bool bValue,
SwMoveFnCollection const & fnMove,
- const SwPaM *pPam =nullptr, bool bInReadOnly = false );
+ const SwPaM *pPam, bool bInReadOnly = false );
bool Find( const SfxItemSet& rAttr, bool bNoColls,
SwMoveFnCollection const & fnMove,
const SwPaM *pPam, bool bInReadOnly, bool bMoveFirst );
diff --git a/sw/inc/swcrsr.hxx b/sw/inc/swcrsr.hxx
index bebc7023f169..6d306073de26 100644
--- a/sw/inc/swcrsr.hxx
+++ b/sw/inc/swcrsr.hxx
@@ -120,12 +120,12 @@ public:
SwDocPositions nStart, SwDocPositions nEnde,
bool& bCancel,
FindRanges,
- const SwTextFormatColl* pReplFormat = nullptr );
+ const SwTextFormatColl* pReplFormat );
sal_uLong Find( const SfxItemSet& rSet, bool bNoCollections,
SwDocPositions nStart, SwDocPositions nEnde,
bool& bCancel,
FindRanges,
- const i18nutil::SearchOptions2* pSearchOpt = nullptr,
+ const i18nutil::SearchOptions2* pSearchOpt,
const SfxItemSet* rReplSet = nullptr );
// UI versions
diff --git a/sw/source/core/undo/untbl.cxx b/sw/source/core/undo/untbl.cxx
index a3fc1152d73e..524ac22d08e8 100644
--- a/sw/source/core/undo/untbl.cxx
+++ b/sw/source/core/undo/untbl.cxx
@@ -2284,7 +2284,7 @@ public:
RedlineFlagsInternGuard(
SwDoc& rDoc, // change mode of this document
RedlineFlags eNewRedlineFlags, // new redline mode
- RedlineFlags eRedlineFlagsMask = RedlineFlags::On | RedlineFlags::Ignore /*change only bits set in this mask*/);
+ RedlineFlags eRedlineFlagsMask /*change only bits set in this mask*/);
~RedlineFlagsInternGuard();
};
diff --git a/sw/source/filter/html/svxcss1.hxx b/sw/source/filter/html/svxcss1.hxx
index bceda4e9c758..516887c54521 100644
--- a/sw/source/filter/html/svxcss1.hxx
+++ b/sw/source/filter/html/svxcss1.hxx
@@ -240,7 +240,7 @@ public:
SvxCSS1Parser( SfxItemPool& rPool,
const OUString& rBaseURL,
- sal_uInt16 *pWhichIds, sal_uInt16 nWhichIds=0 );
+ sal_uInt16 *pWhichIds, sal_uInt16 nWhichIds );
virtual ~SvxCSS1Parser() override;
bool IsIgnoreFontFamily() const { return bIgnoreFontFamily; }
diff --git a/sw/source/filter/html/wrthtml.hxx b/sw/source/filter/html/wrthtml.hxx
index 352c66adf06a..f3bf90476603 100644
--- a/sw/source/filter/html/wrthtml.hxx
+++ b/sw/source/filter/html/wrthtml.hxx
@@ -658,7 +658,7 @@ Writer& OutHTML_Image( Writer&, const SwFrameFormat& rFormat,
Graphic const & rGraphic, const OUString& rAlternateText,
const Size& rRealSize, HtmlFrmOpts nFrameOpts,
const sal_Char *pMarkType,
- const ImageMap *pGenImgMap = nullptr,
+ const ImageMap *pGenImgMap,
const OUString& rMimeType = OUString() );
Writer& OutHTML_BulletImage( Writer& rWrt, const sal_Char *pTag,
diff --git a/sw/source/filter/ww8/ww8scan.hxx b/sw/source/filter/ww8/ww8scan.hxx
index c9216ed1cbe6..a97ea13628fe 100644
--- a/sw/source/filter/ww8/ww8scan.hxx
+++ b/sw/source/filter/ww8/ww8scan.hxx
@@ -1533,7 +1533,7 @@ public:
sal_uInt16 m_nFib_actual; // 0x05bc #i56856#
WW8Fib(SvStream& rStrm, sal_uInt8 nWantedVersion,sal_uInt32 nOffset=0);
- explicit WW8Fib(sal_uInt8 nVersion = 6, bool bDot = false);
+ explicit WW8Fib(sal_uInt8 nVersion, bool bDot = false);
void WriteHeader(SvStream& rStrm);
void Write(SvStream& rStrm);
diff --git a/sw/source/uibase/inc/frmdlg.hxx b/sw/source/uibase/inc/frmdlg.hxx
index 8a8cd84bc467..28c8cbbbaaf4 100644
--- a/sw/source/uibase/inc/frmdlg.hxx
+++ b/sw/source/uibase/inc/frmdlg.hxx
@@ -51,7 +51,7 @@ public:
const SfxItemSet& rCoreSet,
bool bNewFrame,
const OUString& sResType,
- bool bFormat = false,
+ bool bFormat,
const OString& sDefPage = OString(),
const OUString* pFormatStr = nullptr);
diff --git a/sw/source/uibase/inc/wrtsh.hxx b/sw/source/uibase/inc/wrtsh.hxx
index 4693ac1860f3..13825221942a 100644
--- a/sw/source/uibase/inc/wrtsh.hxx
+++ b/sw/source/uibase/inc/wrtsh.hxx
@@ -593,7 +593,7 @@ private:
SAL_DLLPRIVATE void LeaveExtSel() { m_bSelWrd = m_bSelLn = false;}
SAL_DLLPRIVATE bool GoStart(bool KeepArea, bool *,
- bool bSelect = false, bool bDontMoveRegion = false);
+ bool bSelect, bool bDontMoveRegion = false);
SAL_DLLPRIVATE bool GoEnd(bool KeepArea = false, const bool * = nullptr);
enum BookMarkMove