summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/doc/SfxRedactionHelper.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sfx2/source/doc/SfxRedactionHelper.cxx b/sfx2/source/doc/SfxRedactionHelper.cxx
index 310c0374ca35..ff81bdf39292 100644
--- a/sfx2/source/doc/SfxRedactionHelper.cxx
+++ b/sfx2/source/doc/SfxRedactionHelper.cxx
@@ -546,9 +546,7 @@ void SfxRedactionHelper::fillSearchOptions(i18nutil::SearchOptions2& rSearchOpt,
rSearchOpt.Locale = GetAppLanguageTag().getLocale();
if (pTarget->sType == RedactionTargetType::REDACTION_TARGET_PREDEFINED)
{
- sal_Int32 nPredefIndex = pTarget->sContent.getToken(0, ';').toInt32();
- //sal_Int32 nPredefIndex = sContent.toInt32();
-
+ auto nPredefIndex = pTarget->sContent.getToken(0, ';').toUInt32();
rSearchOpt.searchString = m_aPredefinedTargets[nPredefIndex];
}
else