summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2016-01-30 19:09:35 +0200
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2016-07-20 01:25:56 -0400
commitda695330ee333d3210fd6ff236294684e27c5f82 (patch)
tree300b5da7ad08d4d94eea8b1b618a6f7e5969e7e4 /sw/source/uibase
parentb41c9ce2aaaf7ef38071298c7427f6b0905a9bd9 (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> (cherry picked from commit 1ef9f3988ee4dcbc77e1fdefa20442e044a67d4d)
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/lingu/olmenu.cxx2
-rw-r--r--sw/source/uibase/uiview/viewling.cxx6
-rw-r--r--sw/source/uibase/uno/unoatxt.cxx2
3 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/uibase/lingu/olmenu.cxx b/sw/source/uibase/lingu/olmenu.cxx
index 66cf66f94b18..995ee3b6695d 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 4b4c2a230a3d..935491c9d42e 100644
--- a/sw/source/uibase/uiview/viewling.cxx
+++ b/sw/source/uibase/uiview/viewling.cxx
@@ -840,7 +840,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())
{
@@ -855,7 +855,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() )
{
@@ -893,7 +893,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;
}