summaryrefslogtreecommitdiff
path: root/l10ntools/source/helper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'l10ntools/source/helper.cxx')
-rw-r--r--l10ntools/source/helper.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/l10ntools/source/helper.cxx b/l10ntools/source/helper.cxx
index b842755c27f6..22f5cc5df506 100644
--- a/l10ntools/source/helper.cxx
+++ b/l10ntools/source/helper.cxx
@@ -31,9 +31,15 @@ OString escapeAll(
OString unEscapeAll(
+#ifdef DEBUG
const OString& rText, const OString& rEscaped, const OString& rUnEscaped)
+#else
+ const OString& rText, const OString& rEscaped, std::string_view rUnEscaped)
+#endif
{
+#ifdef DEBUG
assert( rEscaped.getLength() == 2*rUnEscaped.getLength() );
+#endif
OStringBuffer sReturn;
const sal_Int32 nLength = rText.getLength();
for ( sal_Int32 nIndex = 0; nIndex < nLength; ++nIndex )