summaryrefslogtreecommitdiff
path: root/starmath
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 /starmath
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 'starmath')
-rw-r--r--starmath/source/dialog.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index f13d0558abe3..33efa5b98ac2 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -23,6 +23,7 @@
#include <cassert>
#include <comphelper/string.hxx>
+#include <o3tl/temporary.hxx>
#include <svl/eitem.hxx>
#include <svl/intitem.hxx>
#include <svl/stritem.hxx>
@@ -1378,8 +1379,7 @@ void SmShowChar::Resize()
const OUString &rText = GetText();
if (rText.isEmpty())
return;
- sal_Int32 nStrIndex = 0;
- sal_UCS4 cChar = rText.iterateCodePoints(&nStrIndex);
+ sal_UCS4 cChar = rText.iterateCodePoints(&o3tl::temporary(sal_Int32(0)));
SetSymbol(cChar, GetFont()); //force recalculation of size
}