summaryrefslogtreecommitdiff
path: root/sc/source/core
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 /sc/source/core
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 'sc/source/core')
-rw-r--r--sc/source/core/tool/interpr1.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/tool/interpr1.cxx b/sc/source/core/tool/interpr1.cxx
index b9050787dfd9..0d86f2c4dac9 100644
--- a/sc/source/core/tool/interpr1.cxx
+++ b/sc/source/core/tool/interpr1.cxx
@@ -23,6 +23,7 @@
#include <editeng/langitem.hxx>
#include <editeng/justifyitem.hxx>
#include <o3tl/safeint.hxx>
+#include <o3tl/temporary.hxx>
#include <osl/thread.h>
#include <unotools/textsearch.hxx>
#include <svl/zforlist.hxx>
@@ -3553,8 +3554,7 @@ void ScInterpreter::ScUnicode()
PushIllegalParameter();
else
{
- sal_Int32 i = 0;
- PushDouble(aStr.iterateCodePoints(&i));
+ PushDouble(aStr.iterateCodePoints(&o3tl::temporary(sal_Int32(0))));
}
}
}