summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-08 13:13:59 +0200
committerNoel Grandin <noel@peralex.com>2016-03-09 10:07:45 +0200
commitc09b3e32372537be739182b02ae83a96386d1e1c (patch)
tree04e93ba798e8c36363792f2ba903b0f9c4ba21ea /sw/inc
parentaf74913da2b63857a248ac8fc4fa438b7a8663ec (diff)
loplugin:constantparam in sw
Change-Id: I8fa1af4a34770b71f6f4bb28b3313edf4875322b
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/IDocumentFieldsAccess.hxx4
-rw-r--r--sw/inc/IDocumentLinksAdministration.hxx2
-rw-r--r--sw/inc/anchoredobject.hxx4
-rw-r--r--sw/inc/crsrsh.hxx4
-rw-r--r--sw/inc/doc.hxx2
-rw-r--r--sw/inc/editsh.hxx13
-rw-r--r--sw/inc/fesh.hxx2
-rw-r--r--sw/inc/node.hxx2
-rw-r--r--sw/inc/pagedesc.hxx4
-rw-r--r--sw/inc/swabstdlg.hxx11
10 files changed, 23 insertions, 25 deletions
diff --git a/sw/inc/IDocumentFieldsAccess.hxx b/sw/inc/IDocumentFieldsAccess.hxx
index d573e767fe11..4eb6b1088573 100644
--- a/sw/inc/IDocumentFieldsAccess.hxx
+++ b/sw/inc/IDocumentFieldsAccess.hxx
@@ -56,7 +56,7 @@ namespace com { namespace sun { namespace star { namespace uno { class Any; } }
virtual void RemoveFieldType(size_t nField) = 0;
- virtual void UpdateFields( SfxPoolItem* pNewHt, bool bCloseDB) = 0;
+ virtual void UpdateFields(bool bCloseDB) = 0;
virtual void InsDeletedFieldType(SwFieldType &) = 0;
@@ -112,7 +112,7 @@ namespace com { namespace sun { namespace star { namespace uno { class Any; } }
*/
virtual bool SetFieldsDirty(bool b, const SwNode* pChk, sal_uLong nLen) = 0;
- virtual void SetFixFields(bool bOnlyTimeDate, const DateTime* pNewDateTime) = 0;
+ virtual void SetFixFields(const DateTime* pNewDateTime) = 0;
// In Calculator set all SetExpression fields that are valid up to the indicated position
// (Node [ + css::ucb::Content]).
diff --git a/sw/inc/IDocumentLinksAdministration.hxx b/sw/inc/IDocumentLinksAdministration.hxx
index db7aebed2bf8..0c9edea72da3 100644
--- a/sw/inc/IDocumentLinksAdministration.hxx
+++ b/sw/inc/IDocumentLinksAdministration.hxx
@@ -46,7 +46,7 @@ using rtl::OUString;
/** #i42634# Moved common code of SwReader::Read() and
SwDocShell::UpdateLinks() to new SwDoc::UpdateLinks():
*/
- virtual void UpdateLinks(bool bUI) = 0;
+ virtual void UpdateLinks() = 0;
/** SS fuers Linken von Dokumentteilen / ?? for linking of parts of documents.
*/
diff --git a/sw/inc/anchoredobject.hxx b/sw/inc/anchoredobject.hxx
index 8b72e4c77fe1..e1907b3279a3 100644
--- a/sw/inc/anchoredobject.hxx
+++ b/sw/inc/anchoredobject.hxx
@@ -200,7 +200,7 @@ class SW_DLLPUBLIC SwAnchoredObject
@author OD
*/
- void SetTmpConsiderWrapInfluenceOfOtherObjs( const bool bTmpConsiderWrapInfluence );
+ void SetTmpConsiderWrapInfluenceOfOtherObjs();
virtual bool _SetObjTop( const SwTwips _nTop) = 0;
virtual bool _SetObjLeft( const SwTwips _nLeft) = 0;
@@ -339,7 +339,7 @@ class SW_DLLPUBLIC SwAnchoredObject
@author OD
*/
- void InvalidateObjPosForConsiderWrapInfluence( const bool _bNotifyBackgrd );
+ void InvalidateObjPosForConsiderWrapInfluence();
/** method to trigger notification of 'background'
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx
index 79d0e236871e..a12d746ada61 100644
--- a/sw/inc/crsrsh.hxx
+++ b/sw/inc/crsrsh.hxx
@@ -322,7 +322,7 @@ public:
// only for usage in special cases allowed!
void ExtendedSelectAll(bool bFootnotes = true);
/// If ExtendedSelectAll() was called and selection didn't change since then.
- bool ExtendedSelectedAll(bool bFootnotes = true);
+ bool ExtendedSelectedAll();
/// If document body starts with a table.
bool StartsWithTable();
@@ -735,7 +735,7 @@ public:
bool IsEndOfDoc() const;
bool IsInFrontOfLabel() const;
bool IsAtLeftMargin() const { return IsAtLRMargin( true ); }
- bool IsAtRightMargin(bool bAPI = false) const { return IsAtLRMargin( false, bAPI ); }
+ bool IsAtRightMargin() const { return IsAtLRMargin( false, true/*bAPI*/ ); }
// delete all created cursors, set the table cursor and the last cursor to
// its TextNode (or StartNode?)
diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx
index 2eddfa94f91a..5905a7b8f0a9 100644
--- a/sw/inc/doc.hxx
+++ b/sw/inc/doc.hxx
@@ -1338,7 +1338,7 @@ public:
static SwSection* GetCurrSection( const SwPosition& rPos );
SwSectionFormats& GetSections() { return *mpSectionFormatTable; }
const SwSectionFormats& GetSections() const { return *mpSectionFormatTable; }
- SwSectionFormat *MakeSectionFormat( SwSectionFormat *pDerivedFrom );
+ SwSectionFormat *MakeSectionFormat();
void DelSectionFormat( SwSectionFormat *pFormat, bool bDelNodes = false );
void UpdateSection(size_t const nSect, SwSectionData &,
SfxItemSet const*const = nullptr, bool const bPreventLinkUpdate = false);
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx
index 6f4088aa82e6..8fd8fa06fd3e 100644
--- a/sw/inc/editsh.hxx
+++ b/sw/inc/editsh.hxx
@@ -196,7 +196,7 @@ public:
void SetNumberingRestart();
/// Embeds all local links (ranges/graphics).
- sal_uInt16 GetLinkUpdMode(bool bDocSettings = false) const;
+ sal_uInt16 GetLinkUpdMode() const;
void SetLinkUpdMode( sal_uInt16 nMode );
/// Copy content of all ranges at current position of cursor to given Shell.
@@ -394,7 +394,7 @@ public:
void UnlockExpFields();
bool IsExpFieldsLocked() const;
- SwFieldUpdateFlags GetFieldUpdateFlags(bool bDocSettings = false) const;
+ SwFieldUpdateFlags GetFieldUpdateFlags() const;
void SetFieldUpdateFlags( SwFieldUpdateFlags eFlags );
/// For evaluation of DB fields (new DB-manager).
@@ -538,8 +538,7 @@ public:
/** Searches for a text node with a numbering rule.
in case a list style is found, <sListId> holds the list id, to which the
text node belongs, which applies the found list style. */
- const SwNumRule * SearchNumRule(const bool bForward,
- const bool bNum,
+ const SwNumRule * SearchNumRule(const bool bNum,
const bool bOutline,
int nNonEmptyAllowed,
OUString& sListId );
@@ -602,7 +601,7 @@ public:
const Graphic* GetGraphic( bool bWait = true ) const;
const GraphicObject* GetGraphicObj() const;
- bool IsGrfSwapOut( bool bOnlyLinked = false ) const;
+ bool IsLinkedGrfSwapOut() const;
sal_uInt16 GetGraphicType() const;
const tools::PolyPolygon *GetGraphicPolygon() const;
@@ -801,7 +800,7 @@ public:
bool IsOutlineMovable( sal_uInt16 nIdx ) const;
bool IsOutlineCopyable( sal_uInt16 nIdx ) const;
- sal_uInt16 GetLineCount( bool bActPos = true );
+ sal_uInt16 GetLineCount();
/// Query and set footnote-text/number. Set.. to current SSelection!
bool GetCurFootnote( SwFormatFootnote* pToFillFootnote = nullptr );
@@ -926,7 +925,7 @@ public:
/// Interface for TextInputData - (for input of Japanese/Chinese chars.)
void CreateExtTextInput(LanguageType eInputLanguage);
- OUString DeleteExtTextInput( SwExtTextInput* pDel = nullptr, bool bInsText = true);
+ OUString DeleteExtTextInput( bool bInsText = true);
void SetExtTextInputData( const CommandExtTextInputData& );
/// Interface for access to AutoComplete-list.
diff --git a/sw/inc/fesh.hxx b/sw/inc/fesh.hxx
index d67c16502781..888916417151 100644
--- a/sw/inc/fesh.hxx
+++ b/sw/inc/fesh.hxx
@@ -592,7 +592,7 @@ public:
/// Hide or show layout-selection and pass call to CursorSh.
void ShellLoseFocus();
- void ShellGetFocus( bool bUpdate = true );
+ void ShellGetFocus();
/// PageDescriptor-interface
void ChgCurPageDesc( const SwPageDesc& );
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx
index dea2afc64019..fd00b7ce7df6 100644
--- a/sw/inc/node.hxx
+++ b/sw/inc/node.hxx
@@ -267,7 +267,7 @@ public:
/** Search PageDesc with which this node is formatted. If layout is existent
search over layout, else only the hard way is left: search over the nodes
to the front!! */
- const SwPageDesc* FindPageDesc( bool bCalcLay, size_t* pPgDescNdIdx = nullptr ) const;
+ const SwPageDesc* FindPageDesc( size_t* pPgDescNdIdx = nullptr ) const;
/// If node is in a fly return the respective format.
SwFrameFormat* GetFlyFormat() const;
diff --git a/sw/inc/pagedesc.hxx b/sw/inc/pagedesc.hxx
index db943eb00686..16c54bded936 100644
--- a/sw/inc/pagedesc.hxx
+++ b/sw/inc/pagedesc.hxx
@@ -158,7 +158,7 @@ class SW_DLLPUBLIC SwPageDesc : public SwModify
No adjustment at any other place. */
SAL_DLLPRIVATE void Mirror();
- SAL_DLLPRIVATE void ResetAllAttr( bool bLeft );
+ SAL_DLLPRIVATE void ResetAllAttr();
SAL_DLLPRIVATE SwPageDesc(const OUString&, SwFrameFormat*, SwDoc *pDc );
@@ -307,7 +307,7 @@ inline UseOnPage SwPageDesc::GetUseOn() const
inline void SwPageDesc::ResetAllMasterAttr()
{
- ResetAllAttr( false );
+ ResetAllAttr();
}
inline const SwFrameFormat *SwPageDesc::GetRightFormat(bool const bFirst) const
diff --git a/sw/inc/swabstdlg.hxx b/sw/inc/swabstdlg.hxx
index f6108fc547d0..60b81d394c90 100644
--- a/sw/inc/swabstdlg.hxx
+++ b/sw/inc/swabstdlg.hxx
@@ -329,8 +329,8 @@ public:
virtual AbstractSwWordCountFloatDlg* CreateSwWordCountDialog(SfxBindings* pBindings,
SfxChildWindow* pChild, vcl::Window *pParent, SfxChildWinInfo* pInfo) = 0;
- virtual AbstractSwInsertAbstractDlg * CreateSwInsertAbstractDlg(vcl::Window* pParent) = 0;
- virtual AbstractSwAsciiFilterDlg* CreateSwAsciiFilterDlg ( vcl::Window* pParent, SwDocShell& rDocSh,
+ virtual AbstractSwInsertAbstractDlg * CreateSwInsertAbstractDlg() = 0;
+ virtual AbstractSwAsciiFilterDlg* CreateSwAsciiFilterDlg ( SwDocShell& rDocSh,
SvStream* pStream ) = 0;
virtual VclAbstractDialog * CreateSwInsertBookmarkDlg( vcl::Window *pParent, SwWrtShell &rSh, SfxRequest& rReq, int nResId ) = 0;
@@ -347,11 +347,11 @@ public:
const SwDBData& rData) = 0;
virtual SfxAbstractTabDialog * CreateSwFootNoteOptionDlg(vcl::Window *pParent, SwWrtShell &rSh) = 0;
- virtual AbstractDropDownFieldDialog * CreateDropDownFieldDialog(vcl::Window *pParent, SwWrtShell &rSh,
+ virtual AbstractDropDownFieldDialog * CreateDropDownFieldDialog(SwWrtShell &rSh,
SwField* pField, bool bNextButton = false) = 0;
virtual SfxAbstractTabDialog* CreateSwEnvDlg ( vcl::Window* pParent, const SfxItemSet& rSet, SwWrtShell* pWrtSh, Printer* pPrt, bool bInsert ) = 0;
- virtual AbstractSwLabDlg* CreateSwLabDlg(vcl::Window* pParent, const SfxItemSet& rSet,
+ virtual AbstractSwLabDlg* CreateSwLabDlg(const SfxItemSet& rSet,
SwDBManager* pDBManager, bool bLabel) = 0;
virtual SwLabDlgMethod GetSwLabDlgStaticMethod () =0;
@@ -364,7 +364,7 @@ public:
bool bDraw = false,
const OString& sDefPage = OString() ) = 0;
- virtual AbstractSwSelGlossaryDlg * CreateSwSelGlossaryDlg(vcl::Window * pParent, const OUString &rShortName) = 0;
+ virtual AbstractSwSelGlossaryDlg * CreateSwSelGlossaryDlg(const OUString &rShortName) = 0;
virtual VclAbstractDialog * CreateVclAbstractDialog ( vcl::Window * pParent, SwWrtShell &rSh, int nResId ) = 0;
virtual AbstractSplitTableDialog * CreateSplitTableDialog ( vcl::Window * pParent, SwWrtShell &rSh ) = 0;
@@ -398,7 +398,6 @@ public:
/// Identifies optional Slot by which the creation of the Template (Style) dialog is triggered.
/// Currently used, if nRegion == SFX_STYLE_FAMILY_PAGE in order to activate certain dialog pane
virtual SfxAbstractApplyTabDialog* CreateTemplateDialog(
- vcl::Window* pParent,
SfxStyleSheetBase& rBase,
sal_uInt16 nRegion,
const OString& sPage = OString(),