diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-06 20:29:08 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-10-08 06:34:07 +0200 |
commit | bd7cf3915964ba80786e2ae77b33fc654fde1f31 (patch) | |
tree | a153eee4572d794f391c61ba487e05772acb81cc /include | |
parent | 93115d2c54d645bcf2f80fde325e3ede39dee4d5 (diff) |
loplugin:moveparam in vcl
Change-Id: Ic43e02576454e3ee174304db350659dd113a1d5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123186
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/font/Feature.hxx | 2 | ||||
-rw-r--r-- | include/vcl/graphictools.hxx | 2 | ||||
-rw-r--r-- | include/vcl/svapp.hxx | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/vcl/font/Feature.hxx b/include/vcl/font/Feature.hxx index b16843abea7d..3026f105fbfb 100644 --- a/include/vcl/font/Feature.hxx +++ b/include/vcl/font/Feature.hxx @@ -68,7 +68,7 @@ public: FeatureDefinition(); FeatureDefinition(uint32_t nCode, OUString const& rDescription, FeatureParameterType eType = FeatureParameterType::BOOL, - std::vector<FeatureParameter> const& rEnumParameters + std::vector<FeatureParameter>&& rEnumParameters = std::vector<FeatureParameter>{}, uint32_t nDefault = 0); FeatureDefinition(uint32_t nCode, TranslateId pDescriptionID, diff --git a/include/vcl/graphictools.hxx b/include/vcl/graphictools.hxx index 90dcbc360d1d..932df413cc58 100644 --- a/include/vcl/graphictools.hxx +++ b/include/vcl/graphictools.hxx @@ -84,7 +84,7 @@ public: CapType aCap, JoinType aJoin, double fMiterLimit, - const DashArray& rDashArray ); // TODO: Dash array offset (position where to start, see PS) + DashArray&& rDashArray ); // TODO: Dash array offset (position where to start, see PS) // accessors /// Query path to stroke diff --git a/include/vcl/svapp.hxx b/include/vcl/svapp.hxx index 519aad8bb27b..e422c47c66ad 100644 --- a/include/vcl/svapp.hxx +++ b/include/vcl/svapp.hxx @@ -161,8 +161,8 @@ public: and are the \em only events that accept an array of strings. No other events should use this constructor. */ - ApplicationEvent(Type type, std::vector<OUString> const & data): - aEvent(type), aData(data) + ApplicationEvent(Type type, std::vector<OUString>&& data): + aEvent(type), aData(std::move(data)) { assert(type == Type::Open || type == Type::Print); } |