summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-08-04 16:23:37 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-08-04 20:20:45 +0200
commit5ecb947b3ad67300bae934dc011823d1989449b6 (patch)
tree51cc4675c79dfd560dd869523b79e1fc94fbf4bb /sw/inc
parentf7c59aaa078576a413846b7c8024e728818ca2be (diff)
loplugin:constparams in sw part5
Change-Id: I6c33709aa407ccb3eee7026ab9b40dc4257de209 Reviewed-on: https://gerrit.libreoffice.org/40769 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/SwAppletImpl.hxx2
-rw-r--r--sw/inc/shellio.hxx2
-rw-r--r--sw/inc/unochart.hxx4
-rw-r--r--sw/inc/unocrsrhelper.hxx10
-rw-r--r--sw/inc/unodraw.hxx2
-rw-r--r--sw/inc/unotbl.hxx8
-rw-r--r--sw/inc/unotextbodyhf.hxx2
-rw-r--r--sw/inc/unotextrange.hxx2
-rw-r--r--sw/inc/viewsh.hxx8
9 files changed, 20 insertions, 20 deletions
diff --git a/sw/inc/SwAppletImpl.hxx b/sw/inc/SwAppletImpl.hxx
index b0fdbbf77364..aaa600b2453e 100644
--- a/sw/inc/SwAppletImpl.hxx
+++ b/sw/inc/SwAppletImpl.hxx
@@ -48,7 +48,7 @@ class SwApplet_Impl
public:
static SwHtmlOptType GetOptionType( const OUString& rName, bool bApplet );
SwApplet_Impl( SfxItemPool& rPool );
- SwApplet_Impl( SfxItemSet& rSet ): aItemSet ( rSet) {}
+ SwApplet_Impl( SfxItemSet const & rSet ): aItemSet ( rSet) {}
~SwApplet_Impl();
void CreateApplet( const OUString& rCode, const OUString& rName,
bool bMayScript, const OUString& rCodeBase,
diff --git a/sw/inc/shellio.hxx b/sw/inc/shellio.hxx
index bbace938d039..1ebc33e4e0a8 100644
--- a/sw/inc/shellio.hxx
+++ b/sw/inc/shellio.hxx
@@ -496,7 +496,7 @@ class SW_DLLPUBLIC SwWriter
bool bWriteAll;
public:
- ErrCode Write( WriterRef& rxWriter, const OUString* = nullptr);
+ ErrCode Write( WriterRef const & rxWriter, const OUString* = nullptr);
SwWriter( SvStream&, SwCursorShell &, bool bWriteAll = false );
SwWriter( SvStream&, SwDoc & );
diff --git a/sw/inc/unochart.hxx b/sw/inc/unochart.hxx
index 6b57b32ac708..4769254de14e 100644
--- a/sw/inc/unochart.hxx
+++ b/sw/inc/unochart.hxx
@@ -179,8 +179,8 @@ public:
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames( ) override;
- void AddDataSequence( const SwTable &rTable, css::uno::Reference< css::chart2::data::XDataSequence > &rxDataSequence );
- void RemoveDataSequence( const SwTable &rTable, css::uno::Reference< css::chart2::data::XDataSequence > &rxDataSequence );
+ void AddDataSequence( const SwTable &rTable, css::uno::Reference< css::chart2::data::XDataSequence > const &rxDataSequence );
+ void RemoveDataSequence( const SwTable &rTable, css::uno::Reference< css::chart2::data::XDataSequence > const &rxDataSequence );
// will send modified events for all data-sequences of the table
void InvalidateTable( const SwTable *pTable );
diff --git a/sw/inc/unocrsrhelper.hxx b/sw/inc/unocrsrhelper.hxx
index 482a1380e537..50ab906d2385 100644
--- a/sw/inc/unocrsrhelper.hxx
+++ b/sw/inc/unocrsrhelper.hxx
@@ -78,7 +78,7 @@ namespace SwUnoCursorHelper
};
css::uno::Reference< css::text::XTextContent >
- GetNestedTextContent(SwTextNode & rTextNode, sal_Int32 const nIndex,
+ GetNestedTextContent(SwTextNode const & rTextNode, sal_Int32 const nIndex,
bool const bParent);
bool getCursorPropertyValue(const SfxItemPropertySimpleEntry& rEntry
@@ -87,7 +87,7 @@ namespace SwUnoCursorHelper
, css::beans::PropertyState& eState
, const SwTextNode* pNode = nullptr );
- void GetCurPageStyle(SwPaM& rPaM, OUString &rString);
+ void GetCurPageStyle(SwPaM const & rPaM, OUString &rString);
inline bool IsStartOfPara(SwPaM& rUnoCursor)
{ return rUnoCursor.GetPoint()->nContent == 0;}
@@ -113,7 +113,7 @@ namespace SwUnoCursorHelper
SwPaM& rPam);
sal_Int16 IsNodeNumStart(
- SwPaM& rPam,
+ SwPaM const & rPam,
css::beans::PropertyState& eState);
bool DocInsertStringSplitCR( SwDoc &rDoc,
@@ -121,7 +121,7 @@ namespace SwUnoCursorHelper
const bool bForceExpandHints );
/// @throws css::lang::IllegalArgumentException
/// @throws css::uno::RuntimeException
- void makeRedline( SwPaM& rPaM, const OUString& RedlineType,
+ void makeRedline( SwPaM const & rPaM, const OUString& RedlineType,
const css::uno::Sequence< css::beans::PropertyValue >& RedlineProperties );
/// @throws css::lang::IllegalArgumentException
@@ -210,7 +210,7 @@ namespace SwUnoCursorHelper
/// @throws css::lang::WrappedTargetException
/// @throws css::uno::RuntimeException
css::uno::Any GetPropertyDefault(
- SwPaM & rPaM,
+ SwPaM const & rPaM,
const SfxItemPropertySet & rPropSet,
const OUString & rPropertyName);
diff --git a/sw/inc/unodraw.hxx b/sw/inc/unodraw.hxx
index 132d74eb8234..4132b3157ad1 100644
--- a/sw/inc/unodraw.hxx
+++ b/sw/inc/unodraw.hxx
@@ -264,7 +264,7 @@ public:
const css::uno::Reference< css::uno::XAggregation >& GetAggregationInterface() {return xShapeAgg;}
// helper
- static void AddExistingShapeToFormat( SdrObject& _rObj );
+ static void AddExistingShapeToFormat( SdrObject const & _rObj );
};
class SwXGroupShape :
diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx
index 7b06cc143e6c..4bb30e0de931 100644
--- a/sw/inc/unotbl.hxx
+++ b/sw/inc/unotbl.hxx
@@ -186,7 +186,7 @@ public:
virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName) override;
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
- static SwTableLine* FindLine(SwTable* pTable, SwTableLine* pLine);
+ static SwTableLine* FindLine(SwTable* pTable, SwTableLine const * pLine);
};
typedef cppu::WeakImplHelper<
@@ -201,7 +201,7 @@ class SW_DLLPUBLIC SwXTextTableCursor : public SwXTextTableCursor_Base
const SfxItemPropertySet* m_pPropSet;
public:
- SwXTextTableCursor(SwFrameFormat* pFormat, SwTableBox* pBox);
+ SwXTextTableCursor(SwFrameFormat* pFormat, SwTableBox const * pBox);
SwXTextTableCursor(SwFrameFormat& rTableFormat,
const SwTableCursor* pTableSelection);
DECLARE_XINTERFACE()
@@ -375,13 +375,13 @@ private:
class Impl;
::sw::UnoImplPtr<Impl> m_pImpl;
- SwXCellRange(const sw::UnoCursorPointer& pCursor, SwFrameFormat& rFrameFormat, SwRangeDescriptor& rDesc);
+ SwXCellRange(const sw::UnoCursorPointer& pCursor, SwFrameFormat& rFrameFormat, SwRangeDescriptor const & rDesc);
virtual ~SwXCellRange() override;
public:
static ::rtl::Reference<SwXCellRange> CreateXCellRange(
const sw::UnoCursorPointer& pCursor, SwFrameFormat& rFrameFormat,
- SwRangeDescriptor& rDesc);
+ SwRangeDescriptor const & rDesc);
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId();
diff --git a/sw/inc/unotextbodyhf.hxx b/sw/inc/unotextbodyhf.hxx
index bb10b191d373..91fcaab8b5e7 100644
--- a/sw/inc/unotextbodyhf.hxx
+++ b/sw/inc/unotextbodyhf.hxx
@@ -122,7 +122,7 @@ public:
static css::uno::Reference< css::text::XText >
CreateXHeadFootText(SwFrameFormat & rHeadFootFormat, const bool bIsHeader);
- static bool IsXHeadFootText(SwClient *const pClient);
+ static bool IsXHeadFootText(SwClient const *const pClient);
// XInterface
virtual css::uno::Any SAL_CALL queryInterface(
diff --git a/sw/inc/unotextrange.hxx b/sw/inc/unotextrange.hxx
index 90b7851b6864..59d41f80360c 100644
--- a/sw/inc/unotextrange.hxx
+++ b/sw/inc/unotextrange.hxx
@@ -108,7 +108,7 @@ private:
public:
- SwXTextRange(SwPaM& rPam,
+ SwXTextRange(SwPaM const & rPam,
const css::uno::Reference< css::text::XText > & xParent,
const enum RangePosition eRange = RANGE_IN_TEXT);
// only for RANGE_IS_TABLE
diff --git a/sw/inc/viewsh.hxx b/sw/inc/viewsh.hxx
index 1678e26eea3e..f88f70c0579a 100644
--- a/sw/inc/viewsh.hxx
+++ b/sw/inc/viewsh.hxx
@@ -351,7 +351,7 @@ public:
// Change of all page descriptors.
void ChgAllPageOrientation( Orientation eOri );
- void ChgAllPageSize( Size &rSz );
+ void ChgAllPageSize( Size const &rSz );
// Printing of one page.
// bIsPDFExport == true is: do PDF Export (no printing!)
@@ -439,9 +439,9 @@ public:
static ShellResource* GetShellRes();
static void SetCareWin( vcl::Window* pNew );
- static vcl::Window* GetCareWin(SwViewShell& rVSh)
+ static vcl::Window* GetCareWin(SwViewShell const & rVSh)
{ return (*mpCareWindow.get()) ? mpCareWindow.get()->get() : CareChildWin(rVSh); }
- static vcl::Window* CareChildWin(SwViewShell& rVSh);
+ static vcl::Window* CareChildWin(SwViewShell const & rVSh);
SfxViewShell *GetSfxViewShell() const { return mpSfxViewShell; }
void SetSfxViewShell(SfxViewShell *pNew) { mpSfxViewShell = pNew; }
@@ -508,7 +508,7 @@ public:
void InvalidateAccessibleFocus();
// Apply Accessiblity options.
- void ApplyAccessiblityOptions(SvtAccessibilityOptions& rAccessibilityOptions);
+ void ApplyAccessiblityOptions(SvtAccessibilityOptions const & rAccessibilityOptions);
/** invalidate CONTENT_FLOWS_FROM/_TO relation for paragraphs