diff options
author | Noel Grandin <noel@peralex.com> | 2016-04-12 08:33:08 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-04-12 08:33:32 +0200 |
commit | 7c99b5586d7cb145079129470fdbf720399eee3c (patch) | |
tree | 71015148cefc130aa7d5b4ecd4e1284b4b2d7563 /sw/inc | |
parent | dc0d98590f07c7dae4504b7ed0c0127794f032d8 (diff) |
clang-tidy performance-unnecessary-value-param in sw
Change-Id: I3e030743b640d5a5f6b3bf4a4e9ba50ccd001287
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/SwNumberTree.hxx | 2 | ||||
-rw-r--r-- | sw/inc/doc.hxx | 2 | ||||
-rw-r--r-- | sw/inc/ndgrf.hxx | 2 | ||||
-rw-r--r-- | sw/inc/textboxhelper.hxx | 2 | ||||
-rw-r--r-- | sw/inc/unoparagraph.hxx | 2 | ||||
-rw-r--r-- | sw/inc/unotbl.hxx | 4 |
6 files changed, 7 insertions, 7 deletions
diff --git a/sw/inc/SwNumberTree.hxx b/sw/inc/SwNumberTree.hxx index f4144ee97881..4b9bdae378f4 100644 --- a/sw/inc/SwNumberTree.hxx +++ b/sw/inc/SwNumberTree.hxx @@ -476,7 +476,7 @@ protected: - false only set if aItLastValid is preceding the current last valid node */ - void SetLastValid(tSwNumberTreeChildren::const_iterator aItLastValid, + void SetLastValid(const tSwNumberTreeChildren::const_iterator& aItLastValid, bool bValidating = false) const; /** diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index 7c3cfc9aa2c4..1dbf4adb07f2 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -877,7 +877,7 @@ public: Convenince function used by ReplaceDocumentProperties to skip some UNO calls. */ - void ReplaceUserDefinedDocumentProperties( const css::uno::Reference< css::document::XDocumentProperties > xSourceDocProps ); + void ReplaceUserDefinedDocumentProperties( const css::uno::Reference< css::document::XDocumentProperties >& xSourceDocProps ); /** Replace document properties with those from rSource. diff --git a/sw/inc/ndgrf.hxx b/sw/inc/ndgrf.hxx index 7b960c9c8a32..3c29befdf9d2 100644 --- a/sw/inc/ndgrf.hxx +++ b/sw/inc/ndgrf.hxx @@ -195,7 +195,7 @@ public: bool IsLinkedInputStreamReady() const { return mbLinkedInputStreamReady;} void TriggerAsyncRetrieveInputStream(); void ApplyInputStream( - css::uno::Reference<css::io::XInputStream> xInputStream, + const css::uno::Reference<css::io::XInputStream>& xInputStream, const bool bIsStreamReadOnly ); void UpdateLinkWithInputStream(); bool IsAsyncRetrieveInputStreamPossible() const; diff --git a/sw/inc/textboxhelper.hxx b/sw/inc/textboxhelper.hxx index 2b3e08738230..012869f533fe 100644 --- a/sw/inc/textboxhelper.hxx +++ b/sw/inc/textboxhelper.hxx @@ -64,7 +64,7 @@ public: /// If we have an associated TextFrame, then return that. static SwFrameFormat* findTextBox(const SwFrameFormat* pShape); - static SwFrameFormat* findTextBox(css::uno::Reference<css::drawing::XShape> xShape); + static SwFrameFormat* findTextBox(const css::uno::Reference<css::drawing::XShape>& xShape); /// Return the textbox rectangle of a draw shape (in twips). static Rectangle getTextRectangle(SwFrameFormat* pShape, bool bAbsolute = true); diff --git a/sw/inc/unoparagraph.hxx b/sw/inc/unoparagraph.hxx index 4da09be3f151..4515bbfa9584 100644 --- a/sw/inc/unoparagraph.hxx +++ b/sw/inc/unoparagraph.hxx @@ -277,7 +277,7 @@ struct SwXParagraphEnumeration { static SwXParagraphEnumeration* Create( css::uno::Reference< css::text::XText > const & xParent, - std::shared_ptr<SwUnoCursor> pCursor, + const std::shared_ptr<SwUnoCursor>& pCursor, const CursorType eType, SwStartNode const*const pStartNode = nullptr, SwTable const*const pTable = nullptr); diff --git a/sw/inc/unotbl.hxx b/sw/inc/unotbl.hxx index a80a57dddfeb..f7ea6062db18 100644 --- a/sw/inc/unotbl.hxx +++ b/sw/inc/unotbl.hxx @@ -425,12 +425,12 @@ private: class Impl; ::sw::UnoImplPtr<Impl> m_pImpl; - SwXCellRange(sw::UnoCursorPointer pCursor, SwFrameFormat& rFrameFormat, SwRangeDescriptor& rDesc); + SwXCellRange(const sw::UnoCursorPointer& pCursor, SwFrameFormat& rFrameFormat, SwRangeDescriptor& rDesc); virtual ~SwXCellRange(); public: static ::rtl::Reference<SwXCellRange> CreateXCellRange( - sw::UnoCursorPointer pCursor, SwFrameFormat& rFrameFormat, + const sw::UnoCursorPointer& pCursor, SwFrameFormat& rFrameFormat, SwRangeDescriptor& rDesc); static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId(); |