summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-10-06 20:29:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-10-08 06:34:07 +0200
commitbd7cf3915964ba80786e2ae77b33fc654fde1f31 (patch)
treea153eee4572d794f391c61ba487e05772acb81cc /vcl/source
parent93115d2c54d645bcf2f80fde325e3ede39dee4d5 (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 'vcl/source')
-rw-r--r--vcl/source/font/Feature.cxx4
-rw-r--r--vcl/source/font/FeatureCollector.cxx5
-rw-r--r--vcl/source/gdi/graphictools.cxx4
3 files changed, 7 insertions, 6 deletions
diff --git a/vcl/source/font/Feature.cxx b/vcl/source/font/Feature.cxx
index 3a8c20b2c915..ba4b09a5def0 100644
--- a/vcl/source/font/Feature.cxx
+++ b/vcl/source/font/Feature.cxx
@@ -96,13 +96,13 @@ FeatureDefinition::FeatureDefinition()
FeatureDefinition::FeatureDefinition(uint32_t nCode, OUString const& rDescription,
FeatureParameterType eType,
- std::vector<FeatureParameter> const& rEnumParameters,
+ std::vector<FeatureParameter>&& rEnumParameters,
uint32_t nDefault)
: m_sDescription(rDescription)
, m_nCode(nCode)
, m_nDefault(nDefault)
, m_eType(eType)
- , m_aEnumParameters(rEnumParameters)
+ , m_aEnumParameters(std::move(rEnumParameters))
{
}
diff --git a/vcl/source/font/FeatureCollector.cxx b/vcl/source/font/FeatureCollector.cxx
index e8219b07c328..6448860f9998 100644
--- a/vcl/source/font/FeatureCollector.cxx
+++ b/vcl/source/font/FeatureCollector.cxx
@@ -73,8 +73,9 @@ bool FeatureCollector::collectGraphite()
FeatureID{ nFeatureCode, HB_OT_TAG_DEFAULT_SCRIPT, HB_OT_TAG_DEFAULT_LANGUAGE },
vcl::font::FeatureType::Graphite);
vcl::font::Feature& rFeature = m_rFontFeatures.back();
- rFeature.m_aDefinition = vcl::font::FeatureDefinition(
- nFeatureCode, sLabel, eFeatureParameterType, aParameters, sal_uInt32(nValue));
+ rFeature.m_aDefinition
+ = vcl::font::FeatureDefinition(nFeatureCode, sLabel, eFeatureParameterType,
+ std::move(aParameters), sal_uInt32(nValue));
}
}
gr_featureval_destroy(pfeatureValues);
diff --git a/vcl/source/gdi/graphictools.cxx b/vcl/source/gdi/graphictools.cxx
index 1a2442d1b2d2..b14f4263cfcb 100644
--- a/vcl/source/gdi/graphictools.cxx
+++ b/vcl/source/gdi/graphictools.cxx
@@ -45,7 +45,7 @@ SvtGraphicStroke::SvtGraphicStroke( const tools::Polygon& rPath,
CapType aCap,
JoinType aJoin,
double fMiterLimit,
- const DashArray& rDashArray ) :
+ DashArray&& rDashArray ) :
maPath( rPath ),
maStartArrow( rStartArrow ),
maEndArrow( rEndArrow ),
@@ -54,7 +54,7 @@ SvtGraphicStroke::SvtGraphicStroke( const tools::Polygon& rPath,
maCapType( aCap ),
maJoinType( aJoin ),
mfMiterLimit( fMiterLimit ),
- maDashArray( rDashArray )
+ maDashArray( std::move(rDashArray) )
{
}