summaryrefslogtreecommitdiff
path: root/scripting/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-11-11 22:04:52 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-11-12 11:15:14 +0100
commit20d971a58727715475b3dcdd22ad568190c2fac4 (patch)
tree5b483b6dea92dc0a7e2bf4f213464c3bb54a9a33 /scripting/source
parentde44eadeb7032c6938e0e30de4b0c906207c92a2 (diff)
clang-tidy: performance-unnecessary-copy-initialization in sd
Change-Id: I2521bc29afb9ae98d7db2fab81f93264c91c4065 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176438 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'scripting/source')
-rw-r--r--scripting/source/stringresource/stringresource.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index 1e548d6ae3bc..ca9d55ba3f79 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -1373,8 +1373,7 @@ void StringResourcePersistenceImpl::importBinary( const Sequence< ::sal_Int8 >&
nOldLocaleCount = aLocaleSeq.getLength();
if( nOldLocaleCount > 0 )
{
- Locale aLocale = aLocaleSeq[0];
- removeLocale( aLocale );
+ removeLocale( aLocaleSeq[0] );
}
}
while( nOldLocaleCount > 0 );