summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-06 21:01:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-07 16:22:48 +0200
commita5a6071264d27b9dcfa47fe2f399951edd7301c2 (patch)
tree91cb49aee69e5a0d758b0a80b3ecf61b5635fa14 /include
parent66b5d2117004f32d89ea10cdd7e086f9f1ff35b0 (diff)
loplugin:moveparam in editeng
Change-Id: Id8118e5f5b7acbff4f04935560c663b36093a5fd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123189 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/editeng/misspellrange.hxx2
-rw-r--r--include/editeng/outlobj.hxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/editeng/misspellrange.hxx b/include/editeng/misspellrange.hxx
index d67fc82f592c..f46c25e2261c 100644
--- a/include/editeng/misspellrange.hxx
+++ b/include/editeng/misspellrange.hxx
@@ -29,7 +29,7 @@ struct MisspellRanges
sal_Int32 mnParagraph;
std::vector<MisspellRange> maRanges;
- MisspellRanges(sal_Int32 nParagraph, const std::vector<MisspellRange>& rRanges);
+ MisspellRanges(sal_Int32 nParagraph, std::vector<MisspellRange>&& rRanges);
};
}
diff --git a/include/editeng/outlobj.hxx b/include/editeng/outlobj.hxx
index 8ba1dedb3f16..1703cf09cf34 100644
--- a/include/editeng/outlobj.hxx
+++ b/include/editeng/outlobj.hxx
@@ -44,7 +44,7 @@ struct EDITENG_DLLPUBLIC OutlinerParaObjData
bool mbIsEditDoc;
// constructor
- OutlinerParaObjData( std::unique_ptr<EditTextObject> pEditTextObject, const ParagraphDataVector& rParagraphDataVector, bool bIsEditDoc );
+ OutlinerParaObjData( std::unique_ptr<EditTextObject> pEditTextObject, ParagraphDataVector&& rParagraphDataVector, bool bIsEditDoc );
OutlinerParaObjData( const OutlinerParaObjData& r );
@@ -74,7 +74,7 @@ friend class std::optional<OutlinerParaObject>;
public:
// constructors/destructor
- OutlinerParaObject(std::unique_ptr<EditTextObject>, const ParagraphDataVector&, bool bIsEditDoc);
+ OutlinerParaObject(std::unique_ptr<EditTextObject>, ParagraphDataVector&&, bool bIsEditDoc);
OutlinerParaObject( std::unique_ptr<EditTextObject> );
OutlinerParaObject( const OutlinerParaObject&);
OutlinerParaObject(OutlinerParaObject&&) noexcept;