diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2016-01-30 19:09:35 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-01-31 12:04:02 +0000 |
commit | 1ef9f3988ee4dcbc77e1fdefa20442e044a67d4d (patch) | |
tree | 686b5f3247d28e19ba949b81fd5596dbe3a27401 /sw | |
parent | 890ebf1cc6bb58ff21da19d7fd4b9b67eaa32a9c (diff) |
unnecessary use of OUString constructor
Change-Id: Idd31b0a53c8318af69bbcd32f6798721ec8eb8e1
Reviewed-on: https://gerrit.libreoffice.org/21945
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/access/accpara.cxx | 12 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8par3.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/lingu/olmenu.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/uiview/viewling.cxx | 6 | ||||
-rw-r--r-- | sw/source/uibase/uno/unoatxt.cxx | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 0f71a4f861a1..3d0283d7638b 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -1483,21 +1483,21 @@ OUString SwAccessibleParagraph::GetFieldTypeNameAtIndex(sal_Int32 nIndex) { const SwGetRefField* pRefField = dynamic_cast<const SwGetRefField*>(pField); if ( pRefField && pRefField->IsRefToHeadingCrossRefBookmark() ) - sEntry = OUString(RTL_CONSTASCII_USTRINGPARAM("Headings")); + sEntry = "Headings"; else if ( pRefField && pRefField->IsRefToNumItemCrossRefBookmark() ) - sEntry = OUString(RTL_CONSTASCII_USTRINGPARAM("Numbered Paragraphs")); + sEntry = "Numbered Paragraphs"; else - sEntry = OUString(RTL_CONSTASCII_USTRINGPARAM("Bookmarks")); + sEntry = "Bookmarks"; } break; case REF_FOOTNOTE: - sEntry = OUString(RTL_CONSTASCII_USTRINGPARAM("Footnotes")); + sEntry = "Footnotes"; break; case REF_ENDNOTE: - sEntry = OUString(RTL_CONSTASCII_USTRINGPARAM("Endnotes")); + sEntry = "Endnotes"; break; case REF_SETREFATTR: - sEntry = OUString(RTL_CONSTASCII_USTRINGPARAM("Insert Reference")); + sEntry = "Insert Reference"; break; case REF_SEQUENCEFLD: sEntry = static_cast<const SwGetRefField*>(pField)->GetSetRefName(); diff --git a/sw/source/filter/ww8/ww8par3.cxx b/sw/source/filter/ww8/ww8par3.cxx index 59e4c3debaca..35f27d39e2c6 100644 --- a/sw/source/filter/ww8/ww8par3.cxx +++ b/sw/source/filter/ww8/ww8par3.cxx @@ -2449,7 +2449,7 @@ bool WW8FormulaListBox::Import(const uno::Reference < sal_uInt32 nLen = maListEntries.size(); uno::Sequence< OUString > aListSource(nLen); for (sal_uInt32 nI = 0; nI < nLen; ++nI) - aListSource[nI] = OUString(maListEntries[nI]); + aListSource[nI] = maListEntries[nI]; aTmp <<= aListSource; xPropSet->setPropertyValue("StringItemList", aTmp ); diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx index 6270ab0eb4d3..17318f982956 100644 --- a/sw/source/uibase/lingu/olmenu.cxx +++ b/sw/source/uibase/lingu/olmenu.cxx @@ -197,7 +197,7 @@ void SwSpellPopup::fillLangPopupMenu( for (it = aLangItems.begin(); it != aLangItems.end(); ++it) { OUString aEntryText( *it ); - if (aEntryText != OUString( SvtLanguageTable::GetLanguageString( LANGUAGE_NONE ) )&& + if (aEntryText != SvtLanguageTable::GetLanguageString( LANGUAGE_NONE ) && aEntryText != "*" && // multiple languages in current selection !aEntryText.isEmpty()) // 'no language found' from language guessing { diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx index f72e370256cc..5bba5c453a09 100644 --- a/sw/source/uibase/uiview/viewling.cxx +++ b/sw/source/uibase/uiview/viewling.cxx @@ -848,7 +848,7 @@ SwFieldDialog::SwFieldDialog( SwEditWin* parent, IFieldmark *fieldBM ) : { const IFieldmark::parameter_map_t* const pParameters = fieldBM->GetParameters(); - OUString sListKey = OUString( ODF_FORMDROPDOWN_LISTENTRY ); + OUString sListKey = ODF_FORMDROPDOWN_LISTENTRY; IFieldmark::parameter_map_t::const_iterator pListEntries = pParameters->find( sListKey ); if(pListEntries != pParameters->end()) { @@ -863,7 +863,7 @@ SwFieldDialog::SwFieldDialog( SwEditWin* parent, IFieldmark *fieldBM ) : } // Select the current one - OUString sResultKey = OUString( ODF_FORMDROPDOWN_RESULT ); + OUString sResultKey = ODF_FORMDROPDOWN_RESULT; IFieldmark::parameter_map_t::const_iterator pResult = pParameters->find( sResultKey ); if ( pResult != pParameters->end() ) { @@ -901,7 +901,7 @@ IMPL_LINK_TYPED( SwFieldDialog, MyListBoxHandler, ListBox&, rBox, void ) sal_Int32 selection = rBox.GetSelectEntryPos(); if ( selection >= 0 ) { - OUString sKey = OUString( ODF_FORMDROPDOWN_RESULT ); + OUString sKey = ODF_FORMDROPDOWN_RESULT; (*pFieldmark->GetParameters())[ sKey ] = makeAny(selection); pFieldmark->Invalidate(); SwView& rView = static_cast<SwEditWin*>( GetParent() )->GetView(); diff --git a/sw/source/uibase/uno/unoatxt.cxx b/sw/source/uibase/uno/unoatxt.cxx index e9d2fe53dc86..8ee1ad987c56 100644 --- a/sw/source/uibase/uno/unoatxt.cxx +++ b/sw/source/uibase/uno/unoatxt.cxx @@ -368,7 +368,7 @@ uno::Reference< text::XAutoTextEntry > SwXAutoTextGroup::insertNewByName(const bool bNoAttr = !pxCursor && !pxRange; if(bNoAttr) { - sOnlyText = OUString(xTextRange->getString()); + sOnlyText = xTextRange->getString(); pOnlyText = &sOnlyText; } |