[Libreoffice-commits] core.git: writerfilter/source
Stephan Bergmann (via logerrit)
logerrit at kemper.freedesktop.org
Fri Jun 26 12:43:32 UTC 2020
writerfilter/source/rtftok/rtfdocumentimpl.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit e772025f369c810fe73c2de7f45b91ffcc345152
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Fri Jun 26 13:17:57 2020 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Fri Jun 26 14:42:53 2020 +0200
Upcoming improved loplugin:elidestringvar: writerfilter
Change-Id: Ib06004b058c8079692adabd384dca72b63e8167a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97210
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
diff --git a/writerfilter/source/rtftok/rtfdocumentimpl.cxx b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
index 6ad3ddaf5a29..9fcbcf2a2f09 100644
--- a/writerfilter/source/rtftok/rtfdocumentimpl.cxx
+++ b/writerfilter/source/rtftok/rtfdocumentimpl.cxx
@@ -2438,9 +2438,9 @@ RTFError RTFDocumentImpl::beforePopState(RTFParserState& rState)
break; // not for nested group
OUString str(m_aStates.top().getCurrentDestinationText()->makeStringAndClear());
// dmapper expects this as a field, so let's fake something...
- OUString const field((Destination::INDEXENTRY == rState.getDestination())
- ? OUStringLiteral("XE")
- : OUStringLiteral("TC"));
+ auto const field((Destination::INDEXENTRY == rState.getDestination())
+ ? OUStringLiteral("XE")
+ : OUStringLiteral("TC"));
str = field + " \"" + str.replaceAll("\"", "\\\"") + "\"";
singleChar(cFieldStart);
Mapper().utext(reinterpret_cast<sal_uInt8 const*>(str.getStr()), str.getLength());
More information about the Libreoffice-commits
mailing list