diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:35:16 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:35:16 +0100 |
commit | 5de01333b62544c36702dab9e44764272794bc7f (patch) | |
tree | 2c33b3e973ac46bb4e76d58ca3d7d216db380fdc /cui/source/options | |
parent | 0167885e0ade1df2872b864a3bc99b22a186672a (diff) |
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: I52bdf6e2ee843e9cc08d0d4f1eb1bc6dcd15f10a
Diffstat (limited to 'cui/source/options')
-rw-r--r-- | cui/source/options/doclinkdialog.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/optinet2.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/optjava.cxx | 6 | ||||
-rw-r--r-- | cui/source/options/optlingu.cxx | 2 | ||||
-rw-r--r-- | cui/source/options/treeopt.cxx | 4 | ||||
-rw-r--r-- | cui/source/options/webconninfo.cxx | 2 |
6 files changed, 9 insertions, 9 deletions
diff --git a/cui/source/options/doclinkdialog.cxx b/cui/source/options/doclinkdialog.cxx index 5e08c75c447a..b22ca4b02b58 100644 --- a/cui/source/options/doclinkdialog.cxx +++ b/cui/source/options/doclinkdialog.cxx @@ -164,7 +164,7 @@ namespace svx { ::sfx2::FileDialogHelper aFileDlg( ui::dialogs::TemplateDescription::FILEOPEN_READONLY_VERSION, 0); - const SfxFilter* pFilter = SfxFilter::GetFilterByName(OUString("StarOffice XML (Base)")); + const SfxFilter* pFilter = SfxFilter::GetFilterByName("StarOffice XML (Base)"); if ( pFilter ) { aFileDlg.AddFilter(pFilter->GetUIName(),pFilter->GetDefaultExtension()); diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx index a37d5e3263e5..5ea938b21fd5 100644 --- a/cui/source/options/optinet2.cxx +++ b/cui/source/options/optinet2.cxx @@ -1075,7 +1075,7 @@ IMPL_LINK_TYPED( SvxEMailTabPage, FileDialogHdl_Impl, Button*, pButton, void ) OUString sUrl; osl::FileBase::getFileURLFromSystemPath(sPath, sUrl); aHelper.SetDisplayDirectory(sUrl); - aHelper.AddFilter( m_sDefaultFilterName, OUString("*")); + aHelper.AddFilter( m_sDefaultFilterName, "*"); if ( ERRCODE_NONE == aHelper.Execute() ) { diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx index 8d53c397d4a9..c42b6a419ef7 100644 --- a/cui/source/options/optjava.cxx +++ b/cui/source/options/optjava.cxx @@ -107,14 +107,14 @@ public: rBar.LogicToPixel(Size(15, 0), MAP_APPFONT).Width()); long nVersionWidth = 12 + std::max(rBar.GetTextWidth(rBar.GetItemText(3)), - GetTextWidth(OUString("0.0.0_00-icedtea"))); + GetTextWidth("0.0.0_00-icedtea")); long nFeatureWidth = 12 + std::max(rBar.GetTextWidth(rBar.GetItemText(4)), GetTextWidth(m_sAccessibilityText)); long nVendorWidth = std::max(GetSizePixel().Width() - (nCheckWidth + nVersionWidth + nFeatureWidth), 6 + std::max(rBar.GetTextWidth(rBar.GetItemText(2)), - GetTextWidth(OUString("Sun Microsystems Inc.")))); + GetTextWidth("Sun Microsystems Inc."))); long aStaticTabs[]= { 4, 0, 0, 0, 0, 0 }; aStaticTabs[2] = nCheckWidth; aStaticTabs[3] = aStaticTabs[2] + nVendorWidth; @@ -975,7 +975,7 @@ IMPL_LINK_NOARG_TYPED(SvxJavaClassPathDlg, AddArchiveHdl_Impl, Button*, void) { sfx2::FileDialogHelper aDlg( TemplateDescription::FILEOPEN_SIMPLE, 0 ); aDlg.SetTitle( CUI_RES( RID_SVXSTR_ARCHIVE_TITLE ) ); - aDlg.AddFilter( CUI_RES( RID_SVXSTR_ARCHIVE_HEADLINE ), OUString("*.jar;*.zip") ); + aDlg.AddFilter( CUI_RES( RID_SVXSTR_ARCHIVE_HEADLINE ), "*.jar;*.zip" ); OUString sFolder; if ( m_pPathList->GetSelectEntryCount() > 0 ) { diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx index bde39e982489..e6231826d6f5 100644 --- a/cui/source/options/optlingu.cxx +++ b/cui/source/options/optlingu.cxx @@ -155,7 +155,7 @@ bool KillFile_Impl( const OUString& rURL ) try { Content aCnt( rURL, uno::Reference< css::ucb::XCommandEnvironment >(), comphelper::getProcessComponentContext() ); - aCnt.executeCommand( OUString("delete"), makeAny( true ) ); + aCnt.executeCommand( "delete", makeAny( true ) ); } catch( css::ucb::CommandAbortedException& ) { diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index ed946e35a565..72e503145f9f 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -1611,7 +1611,7 @@ void OfaTreeOptionsDialog::Initialize( const Reference< XFrame >& _xFrame ) AddTabPage( nPageId, rTextArray.GetString(i), nGroup ); } #ifdef DBG_UTIL - AddTabPage( RID_SW_TP_OPTTEST_PAGE, OUString("Internal Test"), nGroup ); + AddTabPage( RID_SW_TP_OPTTEST_PAGE, "Internal Test", nGroup ); #endif } @@ -1627,7 +1627,7 @@ void OfaTreeOptionsDialog::Initialize( const Reference< XFrame >& _xFrame ) AddTabPage( nPageId, rHTMLArray.GetString(i), nGroup ); } #ifdef DBG_UTIL - AddTabPage( RID_SW_TP_OPTTEST_PAGE, OUString("Internal Test"), nGroup ); + AddTabPage( RID_SW_TP_OPTTEST_PAGE, "Internal Test", nGroup ); #endif } } diff --git a/cui/source/options/webconninfo.cxx b/cui/source/options/webconninfo.cxx index c70479645811..4649f3eac485 100644 --- a/cui/source/options/webconninfo.cxx +++ b/cui/source/options/webconninfo.cxx @@ -90,7 +90,7 @@ void PasswordTable::setColWidths() return; long nUserNameWidth = 12 + std::max(rBar.GetTextWidth(rBar.GetItemText(2)), - GetTextWidth(OUString("XXXXXXXXXXXX"))); + GetTextWidth("XXXXXXXXXXXX")); long nWebSiteWidth = std::max( 12 + rBar.GetTextWidth(rBar.GetItemText(1)), GetSizePixel().Width() - nUserNameWidth); |