[Libreoffice-commits] core.git: xmloff/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Sat Aug 29 06:13:41 UTC 2020
xmloff/source/style/xmlnumfi.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 0714f2a1e7daa2347a8d23889113676deb801733
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Aug 27 19:01:54 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Sat Aug 29 08:12:56 2020 +0200
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 at redhat.com>
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 )
{
More information about the Libreoffice-commits
mailing list