summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-08 09:13:09 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-08 17:10:27 +0200
commit5cd87f195624e2381489084a37dcd43fea24c7b0 (patch)
tree28f7722e16d6052103a7ecc7468f7980db6285e1 /include/vcl
parent953d8429c9c92ced2e3cb1222cadc29b6f1ef550 (diff)
loplugin:moveparam in vcl
Change-Id: I6dea009e1031174ecb3d4371e91c9c6d26c6e514 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123245 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/IContext.hxx4
-rw-r--r--include/vcl/filter/pdfdocument.hxx2
-rw-r--r--include/vcl/toolkit/throbber.hxx2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/IContext.hxx b/include/vcl/IContext.hxx
index 05823d190ed7..d595d8771089 100644
--- a/include/vcl/IContext.hxx
+++ b/include/vcl/IContext.hxx
@@ -22,9 +22,9 @@ protected:
IContext() { maContext.push_back(vcl::EnumContext::Context::Any); }
public:
- void SetContext(const std::vector<vcl::EnumContext::Context>& aContext)
+ void SetContext(std::vector<vcl::EnumContext::Context>&& aContext)
{
- maContext = aContext;
+ maContext = std::move(aContext);
}
bool HasContext(const vcl::EnumContext::Context eContext) const
diff --git a/include/vcl/filter/pdfdocument.hxx b/include/vcl/filter/pdfdocument.hxx
index aae3b5a1f893..aa0e8c67ea66 100644
--- a/include/vcl/filter/pdfdocument.hxx
+++ b/include/vcl/filter/pdfdocument.hxx
@@ -576,7 +576,7 @@ public:
//@{
/// Read elements from the start of the stream till its end.
bool Read(SvStream& rStream);
- void SetSignatureLine(const std::vector<sal_Int8>& rSignatureLine);
+ void SetSignatureLine(std::vector<sal_Int8>&& rSignatureLine);
void SetSignaturePage(size_t nPage);
/// Sign the read document with xCertificate in the edit buffer.
bool Sign(const css::uno::Reference<css::security::XCertificate>& xCertificate,
diff --git a/include/vcl/toolkit/throbber.hxx b/include/vcl/toolkit/throbber.hxx
index bdbbb020889c..287e1e58d949 100644
--- a/include/vcl/toolkit/throbber.hxx
+++ b/include/vcl/toolkit/throbber.hxx
@@ -60,7 +60,7 @@ public:
void stop();
bool isRunning() const;
- void setImageList( ::std::vector< Image > const& i_images );
+ void setImageList( ::std::vector< Image > && i_images );
// default images
static ::std::vector< OUString >