summaryrefslogtreecommitdiff
path: root/xmloff/source/style
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2022-06-09 08:36:33 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-06-10 13:13:15 +0200
commitf71606c920a3f78294da745cd9ef1eacde010224 (patch)
treeb808351112a9b13fb775f7794d18b0cb8b6e1645 /xmloff/source/style
parentb28de9d32016a904e4ba457a9a6c62098416c729 (diff)
new loplugin:moveit
look for local variables that can be std::move'd to parameters off by default, since it doesn't do proper data flow analysis Change-Id: I3403a0fcffd165bdea6a772528bc53995c5fdb40 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135527 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/style')
-rw-r--r--xmloff/source/style/xmlnumfe.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmloff/source/style/xmlnumfe.cxx b/xmloff/source/style/xmlnumfe.cxx
index 82ed552dcbca..d928f8be2a79 100644
--- a/xmloff/source/style/xmlnumfe.cxx
+++ b/xmloff/source/style/xmlnumfe.cxx
@@ -229,7 +229,7 @@ SvXMLNumFmtExport::SvXMLNumFmtExport(
{
LanguageTag aLanguageTag( MsLangId::getConfiguredSystemLanguage() );
- pLocaleData.reset( new LocaleDataWrapper( rExport.getComponentContext(), aLanguageTag ) );
+ pLocaleData.reset( new LocaleDataWrapper( rExport.getComponentContext(), std::move(aLanguageTag) ) );
}
pUsedList.reset(new SvXMLNumUsedList_Impl);
@@ -259,7 +259,7 @@ SvXMLNumFmtExport::SvXMLNumFmtExport(
{
LanguageTag aLanguageTag( MsLangId::getConfiguredSystemLanguage() );
- pLocaleData.reset( new LocaleDataWrapper( rExport.getComponentContext(), aLanguageTag ) );
+ pLocaleData.reset( new LocaleDataWrapper( rExport.getComponentContext(), std::move(aLanguageTag) ) );
}
pUsedList.reset(new SvXMLNumUsedList_Impl);