summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtfdocumentimpl.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-26 13:17:57 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-26 14:42:53 +0200
commite772025f369c810fe73c2de7f45b91ffcc345152 (patch)
treefdda09fcbec9e1feb8628d20bf03aaeff08ff419 /writerfilter/source/rtftok/rtfdocumentimpl.cxx
parent3fe185a4eae857e13cba878447614e455c601f6a (diff)
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@redhat.com>
Diffstat (limited to 'writerfilter/source/rtftok/rtfdocumentimpl.cxx')
-rw-r--r--writerfilter/source/rtftok/rtfdocumentimpl.cxx6
1 files changed, 3 insertions, 3 deletions
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());