summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-08-27 19:01:54 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-08-29 08:12:56 +0200
commit0714f2a1e7daa2347a8d23889113676deb801733 (patch)
tree42c2872e423fd9fd2b42bac9d5ef2afd0202bb0a
parenta1570b6052ae9c9349282027c9007b071589bce6 (diff)
Simplify OUStringBuffer to OUString conversion
Change-Id: I7f0d0aaf1256066d6033621798651f20e6a39f5e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101570 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--xmloff/source/style/xmlnumfi.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmloff/source/style/xmlnumfi.cxx b/xmloff/source/style/xmlnumfi.cxx
index 076b47cdaddf..81bd3c001f4b 100644
--- a/xmloff/source/style/xmlnumfi.cxx
+++ b/xmloff/source/style/xmlnumfi.cxx
@@ -581,7 +581,7 @@ static void lcl_EnquoteIfNecessary( OUStringBuffer& rContent, const SvXMLNumForm
// the percent character in percentage styles must be left out of quoting
// (one occurrence is enough even if there are several percent characters in the string)
- OUString aString( rContent.getStr() );
+ OUString aString( rContent.toString() );
sal_Int32 nPos = aString.indexOf( '%' );
if ( nPos >= 0 )
{