[Libreoffice-commits] core.git: sw/source

Tor Lillqvist tml at collabora.com
Sun Apr 5 06:29:30 PDT 2015


 sw/source/core/doc/doctxm.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 42553d230488ad38a3b6c6c418b151c89a2745d9
Author: Tor Lillqvist <tml at collabora.com>
Date:   Sun Apr 5 16:27:17 2015 +0300

    WaE: elide construction of rtl::OUString with ASCII sal_Unicode argument ...
    
    ... in call of rtl::operator+ [loplugin:stringconstant].
    
    Change-Id: If29fb371efafc074eb830d7dbca75e7e735c979b

diff --git a/sw/source/core/doc/doctxm.cxx b/sw/source/core/doc/doctxm.cxx
index 0c61cb4..8b6ff31 100644
--- a/sw/source/core/doc/doctxm.cxx
+++ b/sw/source/core/doc/doctxm.cxx
@@ -1290,7 +1290,7 @@ void SwTOXBaseSection::UpdateSequence( const SwTxtNode* pOwnChapterNode )
         {
             const SwSetExpField& rSeqField = dynamic_cast<const SwSetExpField&>(*(pFmtFld->GetField()));
             const OUString sName = GetSequenceName()
-                + OUString( cSequenceMarkSeparator )
+                + OUStringLiteral1<cSequenceMarkSeparator>()
                 + OUString::number( rSeqField.GetSeqNumber() );
             SwTOXPara * pNew = new SwTOXPara( rTxtNode, nsSwTOXElement::TOX_SEQUENCE, 1, sName );
             // set indexes if the number or the reference text are to be displayed


More information about the Libreoffice-commits mailing list