diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2021-01-07 16:42:41 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2021-01-07 19:45:35 +0100 |
commit | 0701aca589b819b845d08ea60263ad89718cfd7f (patch) | |
tree | f191b28d43c6498783c044b67b58c72c6c0053ae /i18npool/source/indexentry/indexentrysupplier_common.cxx | |
parent | 1d9128b6d712669185f402314e5fb57130d4ba5a (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 'i18npool/source/indexentry/indexentrysupplier_common.cxx')
-rw-r--r-- | i18npool/source/indexentry/indexentrysupplier_common.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/i18npool/source/indexentry/indexentrysupplier_common.cxx b/i18npool/source/indexentry/indexentrysupplier_common.cxx index 3d11a4ac2836..b7c08a0ed82a 100644 --- a/i18npool/source/indexentry/indexentrysupplier_common.cxx +++ b/i18npool/source/indexentry/indexentrysupplier_common.cxx @@ -21,6 +21,7 @@ #include <indexentrysupplier_common.hxx> #include <cppuhelper/supportsservice.hxx> #include <localedata.hxx> +#include <o3tl/temporary.hxx> using namespace ::com::sun::star::uno; using namespace ::com::sun::star; @@ -72,8 +73,7 @@ sal_Bool SAL_CALL IndexEntrySupplier_Common::loadAlgorithm( const lang::Locale& OUString SAL_CALL IndexEntrySupplier_Common::getIndexKey( const OUString& rIndexEntry, const OUString&, const lang::Locale& ) { - sal_Int32 nPos=0; - sal_uInt32 indexChar=rIndexEntry.iterateCodePoints(&nPos, 0); + sal_uInt32 indexChar=rIndexEntry.iterateCodePoints(&o3tl::temporary(sal_Int32(0)), 0); return OUString(&indexChar, 1); } |