diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-19 17:16:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-19 17:16:38 +0200 |
commit | 713843bebb27f09b5af9190cf84c57f6076e54aa (patch) | |
tree | 1936b003f3ca2a7daf84fa8349d44d801ff58cd5 /sw/source/uibase/shells | |
parent | 039913c383477e8ea1d62426df5cc30f6637ebfe (diff) |
loplugin:stringcopy: sw
Change-Id: I0a794e1d2a4b7e97133df0f7243817da7caaee1d
Diffstat (limited to 'sw/source/uibase/shells')
-rw-r--r-- | sw/source/uibase/shells/drformsh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/shells/textsh.cxx | 4 | ||||
-rw-r--r-- | sw/source/uibase/shells/textsh1.cxx | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/uibase/shells/drformsh.cxx b/sw/source/uibase/shells/drformsh.cxx index cde7c347c86a..fb5071a75d58 100644 --- a/sw/source/uibase/shells/drformsh.cxx +++ b/sw/source/uibase/shells/drformsh.cxx @@ -132,7 +132,7 @@ void SwDrawFormShell::Execute(SfxRequest &rReq) INetURLObject aAbs; if( pMedium ) aAbs = pMedium->GetURLObject(); - aTmp <<= OUString(URIHelper::SmartRel2Abs(aAbs, rHLinkItem.GetURL())); + aTmp <<= URIHelper::SmartRel2Abs(aAbs, rHLinkItem.GetURL()); xPropSet->setPropertyValue( sTargetURL, aTmp ); if( !rHLinkItem.GetTargetFrame().isEmpty() ) diff --git a/sw/source/uibase/shells/textsh.cxx b/sw/source/uibase/shells/textsh.cxx index 613a008ad967..4ee04dd89bd4 100644 --- a/sw/source/uibase/shells/textsh.cxx +++ b/sw/source/uibase/shells/textsh.cxx @@ -279,9 +279,9 @@ void SwTextShell::ExecInsert(SfxRequest &rReq) aMargin = pMarginItem->GetSize(); if ( pURLItem ) - xSet->setPropertyValue("FrameURL", uno::makeAny( OUString( pURLItem->GetValue() ) ) ); + xSet->setPropertyValue("FrameURL", uno::makeAny( pURLItem->GetValue() ) ); if ( pNameItem ) - xSet->setPropertyValue("FrameName", uno::makeAny( OUString( pNameItem->GetValue() ) ) ); + xSet->setPropertyValue("FrameName", uno::makeAny( pNameItem->GetValue() ) ); if ( eScroll == ScrollingMode::Auto ) xSet->setPropertyValue("FrameIsAutoScroll", diff --git a/sw/source/uibase/shells/textsh1.cxx b/sw/source/uibase/shells/textsh1.cxx index bc71aad799b6..c5f284426d15 100644 --- a/sw/source/uibase/shells/textsh1.cxx +++ b/sw/source/uibase/shells/textsh1.cxx @@ -257,8 +257,8 @@ void sw_CharDialog( SwWrtShell &rWrtSh, bool bUseDialog, sal_uInt16 nSlot,const static short lcl_AskRedlineFlags(vcl::Window *pWin) { ScopedVclPtrInstance<MessBox> aQBox( pWin, 0, - OUString( SwResId( STR_REDLINE_TITLE ) ), - OUString( SwResId( STR_REDLINE_MSG ) ) ); + SwResId( STR_REDLINE_TITLE ), + SwResId( STR_REDLINE_MSG ) ); aQBox->SetImage( QueryBox::GetStandardImage() ); const ButtonDialogFlags nBtnFlags = ButtonDialogFlags::Default | ButtonDialogFlags::OK | @@ -1422,7 +1422,7 @@ void SwTextShell::GetState( SfxItemSet &rSet ) const sal_Int16 nWordType = ::i18n::WordType::DICTIONARY_WORD; bool bWord = rSh.IsInWord( nWordType ) || rSh.IsStartWord( nWordType ) || rSh.IsEndWord( nWordType ); if (bValid && bWord) - aText = rSh.HasSelection()? OUString(rSh.GetSelText()) : rSh.GetCurWord(); + aText = rSh.HasSelection()? rSh.GetSelText() : rSh.GetCurWord(); LanguageType nLang = rSh.GetCurLang(); LanguageTag aLanguageTag( nLang); |