diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-09-03 09:33:39 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-09-03 09:34:00 +0200 |
commit | 37a6fdf890d49a20a57aeb41021dc0ff663cc628 (patch) | |
tree | ddc85350aacd58ced61263b4e34ed585e63c2933 /cui | |
parent | 411e32244c7bff5fb64a049b1c63cf15ac166cd3 (diff) |
loplugin:stringconstant also for cases using char const v[] = "..."
Change-Id: Iba38686620624178a7be39d703389402bbcea4cb
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/customize/cfg.cxx | 6 | ||||
-rw-r--r-- | cui/source/dialogs/hldocntp.cxx | 2 | ||||
-rw-r--r-- | cui/source/dialogs/hldoctp.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx index 2664fcc0e604..a0924cecdb2f 100644 --- a/cui/source/customize/cfg.cxx +++ b/cui/source/customize/cfg.cxx @@ -305,7 +305,7 @@ generateCustomURL( SvxEntries* entries ) { OUString url = OUString(ITEM_TOOLBAR_URL ); - url += OUString(CUSTOM_TOOLBAR_STR ); + url += CUSTOM_TOOLBAR_STR; // use a random number to minimize possible clash with existing custom toolbars url += OUString::number( generateRandomValue(), 16 ); @@ -1134,7 +1134,7 @@ bool MenuSaveInData::LoadSubMenus( if ( !subMenuTitle.isEmpty() ) { - subMenuTitle += OUString( aMenuSeparatorStr); + subMenuTitle += aMenuSeparatorStr; } else { @@ -1933,7 +1933,7 @@ void SvxConfigPage::AddSubMenusToUI( if ( pEntryData->IsPopup() ) { OUString subMenuTitle( rBaseTitle ); - subMenuTitle += OUString(aMenuSeparatorStr); + subMenuTitle += aMenuSeparatorStr; subMenuTitle += stripHotKey( pEntryData->GetName() ); sal_uInt16 nPos = m_pTopLevelListBox->InsertEntry( subMenuTitle ); diff --git a/cui/source/dialogs/hldocntp.cxx b/cui/source/dialogs/hldocntp.cxx index 3acb9fec7922..12d98d121290 100644 --- a/cui/source/dialogs/hldocntp.cxx +++ b/cui/source/dialogs/hldocntp.cxx @@ -436,7 +436,7 @@ IMPL_LINK_NOARG_TYPED(SvxHyperlinkNewDocTp, ClickNewHdl_Impl, Button*, void) OUString aStrTmp( xFolderPicker->getDirectory() ); if( aStrTmp[ aStrTmp.getLength() - 1 ] != sSlash[0] ) - aStrTmp += OUString( sSlash ); + aStrTmp += sSlash; // append old file name if( bHandleFileName ) diff --git a/cui/source/dialogs/hldoctp.cxx b/cui/source/dialogs/hldoctp.cxx index 92c15d7e213a..764d5f382602 100644 --- a/cui/source/dialogs/hldoctp.cxx +++ b/cui/source/dialogs/hldoctp.cxx @@ -135,7 +135,7 @@ OUString SvxHyperlinkDocTp::GetCurrentURL () if( !aStrMark.isEmpty() ) { - aStrURL += OUString( sHash ); + aStrURL += sHash; aStrURL += aStrMark; } |