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

Stephan Bergmann sbergman at redhat.com
Sun Jan 3 10:10:40 PST 2016


 sw/source/core/txtnode/thints.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6aa4496c789fec271dcdc7995cf62ef2dabf1f96
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Sun Jan 3 19:10:07 2016 +0100

    loplugin:stringconstant
    
    Change-Id: I60ee2ccc6090c305ade4ba16d3d298866cf89c4e

diff --git a/sw/source/core/txtnode/thints.cxx b/sw/source/core/txtnode/thints.cxx
index 0cbdd5e..19a0f77 100644
--- a/sw/source/core/txtnode/thints.cxx
+++ b/sw/source/core/txtnode/thints.cxx
@@ -1507,8 +1507,8 @@ bool SwTextNode::InsertHint( SwTextAttr * const pAttr, const SetAttrMode nMode )
                     if( !(SetAttrMode::NOTXTATRCHR & nMode) )
                     {
                         SwIndex aIdx( this, pAttr->GetStart() );
-                        const OUString aContent = OUString(CH_TXT_ATR_INPUTFIELDSTART)
-                            + pTextInputField->GetFieldContent() + OUString(CH_TXT_ATR_INPUTFIELDEND);
+                        const OUString aContent = OUStringLiteral1<CH_TXT_ATR_INPUTFIELDSTART>()
+                            + pTextInputField->GetFieldContent() + OUStringLiteral1<CH_TXT_ATR_INPUTFIELDEND>();
                         InsertText( aContent, aIdx, nInsertFlags );
 
                         sal_Int32* const pEnd(pAttr->GetEnd());


More information about the Libreoffice-commits mailing list