diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:38:44 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:38:44 +0100 |
commit | 41a000b7428ea111f99acf1ce00c1d34747e987e (patch) | |
tree | a5f95de375ef3b9c63f65e1aaaf83a66f068d4d1 /xmloff/source/text | |
parent | fd80fa38db85129934326e7e31f249a967c5ec04 (diff) |
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: Ibb9372bc45a0bc0b9083ad0e405440bbbe5ef678
Diffstat (limited to 'xmloff/source/text')
-rw-r--r-- | xmloff/source/text/txtfldi.cxx | 2 | ||||
-rw-r--r-- | xmloff/source/text/txtparai.cxx | 10 | ||||
-rw-r--r-- | xmloff/source/text/txtvfldi.cxx | 6 |
3 files changed, 8 insertions, 10 deletions
diff --git a/xmloff/source/text/txtfldi.cxx b/xmloff/source/text/txtfldi.cxx index bd3370506d57..e183b4f0e3fe 100644 --- a/xmloff/source/text/txtfldi.cxx +++ b/xmloff/source/text/txtfldi.cxx @@ -1964,7 +1964,7 @@ void XMLUserDocInfoImportContext::ProcessAttribute( { if (!bValid) { - SetServiceName(OUString(sAPI_docinfo_custom ) ); + SetServiceName(sAPI_docinfo_custom ); aName = sAttrValue; bValid = true; } diff --git a/xmloff/source/text/txtparai.cxx b/xmloff/source/text/txtparai.cxx index 0a57b1085be3..e99e4e617ac1 100644 --- a/xmloff/source/text/txtparai.cxx +++ b/xmloff/source/text/txtparai.cxx @@ -395,10 +395,10 @@ XMLImpHyperlinkContext_Impl::XMLImpHyperlinkContext_Impl( { if( IsXMLToken( sShow, XML_NEW ) ) mpHint->SetTargetFrameName( - OUString( "_blank" ) ); + "_blank" ); else if( IsXMLToken( sShow, XML_REPLACE ) ) mpHint->SetTargetFrameName( - OUString( "_self" ) ); + "_self" ); } if ( mpHint->GetHRef().isEmpty() ) @@ -883,7 +883,7 @@ void XMLMetaImportContext::InsertMeta( const uno::Reference<rdf::XMetadatable> xMeta( XMLTextMarkImportContext::CreateAndInsertMark( GetImport(), - OUString("com.sun.star.text.InContentMetadata"), + "com.sun.star.text.InContentMetadata", OUString(), i_xInsertionRange, m_XmlId), uno::UNO_QUERY); @@ -959,7 +959,7 @@ void XMLMetaFieldImportContext::InsertMeta( const Reference<XPropertySet> xPropertySet( XMLTextMarkImportContext::CreateAndInsertMark( GetImport(), - OUString("com.sun.star.text.textfield.MetadataField"), + "com.sun.star.text.textfield.MetadataField", OUString(), i_xInsertionRange, m_XmlId), UNO_QUERY); @@ -2108,7 +2108,7 @@ XMLParaContext::~XMLParaContext() // borrow from XMLTextMarkImportContext XMLTextMarkImportContext::CreateAndInsertMark( GetImport(), - OUString( "com.sun.star.text.ReferenceMark"), + "com.sun.star.text.ReferenceMark", rRefName, xAttrCursor); } diff --git a/xmloff/source/text/txtvfldi.cxx b/xmloff/source/text/txtvfldi.cxx index 9d75525543c5..9ee5e6933899 100644 --- a/xmloff/source/text/txtvfldi.cxx +++ b/xmloff/source/text/txtvfldi.cxx @@ -1144,8 +1144,7 @@ void XMLDatabaseDisplayImportContext::EndElement() // create and prepare field master first if (CreateField(xMaster, - OUString( - sAPI_fieldmaster_database))) + sAPI_fieldmaster_database)) { Any aAny; aAny <<= sColumnName; @@ -1157,8 +1156,7 @@ void XMLDatabaseDisplayImportContext::EndElement() // create field Reference<XPropertySet> xField; if (CreateField(xField, - OUString( - sAPI_database))) + sAPI_database)) { // attach field master Reference<XDependentTextField> xDepField(xField, UNO_QUERY); |