diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-30 15:29:41 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-30 15:29:41 +0200 |
commit | 32f9120fa076ef9dcee1d29e0a596a36aade353c (patch) | |
tree | 8f5ca4bc9f37598ee2e04726a124ed767a826edd /sw/source/filter/ww8/ww8par2.cxx | |
parent | 185c3c8207de78ebb4f4dc053b5fe16f810929cc (diff) |
loplugin:stringconstant: adapt to improved OUStringLiteral1 (sw)
Change-Id: Ifa1a6bafd3628b48ebceb09f8cd864361848e81c
Diffstat (limited to 'sw/source/filter/ww8/ww8par2.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8par2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx index cc60100bcb7e..b483fbcff414 100644 --- a/sw/source/filter/ww8/ww8par2.cxx +++ b/sw/source/filter/ww8/ww8par2.cxx @@ -309,7 +309,7 @@ sal_uInt16 SwWW8ImplReader::End_Footnote() //There should have been a footnote char, we will replace this. if (pText && nPos) { - sChar += OUString(pText->GetText()[--nPos]); + sChar += OUStringLiteral1(pText->GetText()[--nPos]); m_pPaM->SetMark(); --m_pPaM->GetMark()->nContent; m_rDoc.getIDocumentContentOperations().DeleteRange( *m_pPaM ); @@ -663,7 +663,7 @@ void SwWW8ImplReader::SetAnlvStrings(SwNumFormat &rNum, WW8_ANLV const &rAV, { for(sal_Int32 i = 0; i < rAV.cbTextBefore + rAV.cbTextAfter; ++i, pText += 2) { - sText += OUString(sal_Unicode(SVBT16ToShort(*reinterpret_cast<SVBT16 const *>(pText)))); + sText += OUStringLiteral1(SVBT16ToShort(*reinterpret_cast<SVBT16 const *>(pText))); } } |