summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-01-07 16:42:41 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-01-07 19:45:35 +0100
commit0701aca589b819b845d08ea60263ad89718cfd7f (patch)
treef191b28d43c6498783c044b67b58c72c6c0053ae /editeng
parent1d9128b6d712669185f402314e5fb57130d4ba5a (diff)
Use o3tl::temporary in calls to OUString::iterateCodePoints
...that are not interested in the updated *indexUtf16 value Change-Id: Iaaa0fe45dcb54c4a8a347bcdb6fca6041218d009 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108941 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/source/uno/unonrule.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx
index 03b766d446d7..761fa305e3f4 100644
--- a/editeng/source/uno/unonrule.cxx
+++ b/editeng/source/uno/unonrule.cxx
@@ -43,6 +43,7 @@
#include <editeng/editids.hrc>
#include <editeng/numdef.hxx>
#include <o3tl/enumarray.hxx>
+#include <o3tl/temporary.hxx>
#include <memory>
using ::com::sun::star::util::XCloneable;
@@ -324,8 +325,7 @@ void SvxUnoNumberingRules::setNumberingRuleByIndex(const Sequence<beans::Propert
{
if(!aStr.isEmpty())
{
- sal_Int32 nIndexUtf16 = 0;
- aFmt.SetBulletChar(aStr.iterateCodePoints(&nIndexUtf16));
+ aFmt.SetBulletChar(aStr.iterateCodePoints(&o3tl::temporary(sal_Int32(0))));
}
else
{