diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-01-13 20:48:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-01-14 07:35:05 +0100 |
commit | 499e3a738a4bd2df70d2bc3e1d0708b9dae0ae14 (patch) | |
tree | f9f05f620b848886a4ecbcd5686e96cda738757d /vcl/source | |
parent | 3f2ba9af5dfb740320a6410e9f660129ec115728 (diff) |
Use o3tl::temporary in one more call to OUString::iterateCodePoints
...similar to 0701aca589b819b845d08ea60263ad89718cfd7f "Use o3tl::temporary in
calls to OUString::iterateCodePoints", after
6ce3e7b615193f610add5428d2157f31600dec52 "Verify o3tl::temporary of a copied
lvalue works as expected" has been covered
Change-Id: I6a21acb0d1a6436ea57d670a2922778034edd4df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109248
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/CommonSalLayout.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx index 998e07169c51..7f557c73b314 100644 --- a/vcl/source/gdi/CommonSalLayout.cxx +++ b/vcl/source/gdi/CommonSalLayout.cxx @@ -25,6 +25,7 @@ #include <sallayout.hxx> +#include <o3tl/temporary.hxx> #include <sal/log.hxx> #include <unotools/configmgr.hxx> #include <vcl/unohelp.hxx> @@ -555,8 +556,8 @@ bool GenericSalLayout::LayoutText(ImplLayoutArgs& rArgs, const SalLayoutGlyphs* if (bInCluster) nGlyphFlags |= GlyphItemFlags::IS_IN_CLUSTER; - sal_Int32 indexUtf16 = nCharPos; - sal_UCS4 aChar = rArgs.mrStr.iterateCodePoints(&indexUtf16, 0); + sal_UCS4 aChar + = rArgs.mrStr.iterateCodePoints(&o3tl::temporary(sal_Int32(nCharPos)), 0); if (u_getIntPropertyValue(aChar, UCHAR_GENERAL_CATEGORY) == U_NON_SPACING_MARK) nGlyphFlags |= GlyphItemFlags::IS_DIACRITIC; |