diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:36:04 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-11-06 09:36:04 +0100 |
commit | e9c65d802bc84b2c96435cd90974d79fb6c359ae (patch) | |
tree | 08d19e7adf6e885ff50c7882f2220b51f1bca650 /fpicker/source | |
parent | b2d54b09c6148c4bb32d3dcd70523c0e5c42db31 (diff) |
loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)
Change-Id: Ib9c9daa113fecff495a51dca1bfaace1239b6ebc
Diffstat (limited to 'fpicker/source')
-rw-r--r-- | fpicker/source/office/PlacesListBox.cxx | 4 | ||||
-rw-r--r-- | fpicker/source/office/RemoteFilesDialog.cxx | 4 | ||||
-rw-r--r-- | fpicker/source/office/commonpicker.cxx | 4 | ||||
-rw-r--r-- | fpicker/source/office/iodlg.cxx | 8 |
4 files changed, 10 insertions, 10 deletions
diff --git a/fpicker/source/office/PlacesListBox.cxx b/fpicker/source/office/PlacesListBox.cxx index 407167d5eb66..0ef93037c5fe 100644 --- a/fpicker/source/office/PlacesListBox.cxx +++ b/fpicker/source/office/PlacesListBox.cxx @@ -76,12 +76,12 @@ PlacesListBox::PlacesListBox( vcl::Window* pParent, SvtFileDialog* pFileDlg, con mpImpl->SetDoubleClickHdl( LINK( this, PlacesListBox, DoubleClick ) ) ; mpAddBtn.reset( VclPtr<ImageButton>::Create( this, 0 ) ); - mpAddBtn->SetText( OUString( "+" ) ); + mpAddBtn->SetText( "+" ); mpAddBtn->SetPosSizePixel( Point( 0, 0 ), Size( 22, 22 ) ); mpAddBtn->Show(); mpDelBtn.reset( VclPtr<ImageButton>::Create( this, 0 ) ); - mpDelBtn->SetText( OUString( "-" ) ); + mpDelBtn->SetText( "-" ); mpDelBtn->SetPosSizePixel( Point( 0, 0 ), Size( 22, 22 ) ); mpDelBtn->Show(); } diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx index da34b7af7d07..3cb558c9a61b 100644 --- a/fpicker/source/office/RemoteFilesDialog.cxx +++ b/fpicker/source/office/RemoteFilesDialog.cxx @@ -305,7 +305,7 @@ void RemoteFilesDialog::dispose() sSize = sSize + OUString::number( aSize.Height() ) + "|"; OUString sUserData = m_pFileView->GetConfigString(); - aDlgOpt.SetUserItem( OUString( "UserData" ), + aDlgOpt.SetUserItem( "UserData", makeAny( sSize + sUserData ) ); } @@ -438,7 +438,7 @@ void RemoteFilesDialog::InitSize() { SetWindowState( OUStringToOString( aDlgOpt.GetWindowState(), osl_getThreadTextEncoding() ) ); - Any aUserData = aDlgOpt.GetUserItem( OUString( "UserData" ) ); + Any aUserData = aDlgOpt.GetUserItem( "UserData" ); OUString sCfgStr; if( aUserData >>= sCfgStr ) { diff --git a/fpicker/source/office/commonpicker.cxx b/fpicker/source/office/commonpicker.cxx index 0b796da3aee4..9546ab79e772 100644 --- a/fpicker/source/office/commonpicker.cxx +++ b/fpicker/source/office/commonpicker.cxx @@ -56,13 +56,13 @@ namespace svt { // the two properties we have registerProperty( - OUString( "HelpURL" ), PROPERTY_ID_HELPURL, + "HelpURL", PROPERTY_ID_HELPURL, PropertyAttribute::TRANSIENT, &m_sHelpURL, cppu::UnoType<decltype(m_sHelpURL)>::get() ); registerProperty( - OUString( "Window" ), PROPERTY_ID_WINDOW, + "Window", PROPERTY_ID_WINDOW, PropertyAttribute::TRANSIENT | PropertyAttribute::READONLY, &m_xWindow, cppu::UnoType<decltype(m_xWindow)>::get() ); diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index 4141b48b7e5c..60822b6ed191 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -515,7 +515,7 @@ void SvtFileDialog::dispose() SvtViewOptions aDlgOpt( E_DIALOG, _pImp->_aIniKey ); aDlgOpt.SetWindowState(OStringToOUString(GetWindowState(), osl_getThreadTextEncoding())); OUString sUserData = _pFileView->GetConfigString(); - aDlgOpt.SetUserItem( OUString( "UserData" ), + aDlgOpt.SetUserItem( "UserData", makeAny( sUserData ) ); } @@ -758,7 +758,7 @@ void SvtFileDialog::Init_Impl /// read our settings from the configuration m_aConfiguration = OConfigurationTreeRoot::createWithComponentContext( ::comphelper::getProcessComponentContext(), - OUString( "/org.openoffice.Office.UI/FilePicker" ) + "/org.openoffice.Office.UI/FilePicker" ); _pContainer->init(_pImp, _pFileView, _pSplitter, _pImp->_pBtnNewFolder, _pImp->_pEdFileName); @@ -2043,7 +2043,7 @@ short SvtFileDialog::PrepareExecute() // if applicable set respectively create filter for all files if ( !bHasAll ) { - SvtFileDialogFilter_Impl* pAllFilter = implAddFilter( aAll, OUString(FILEDIALOG_FILTER_ALL) ); + SvtFileDialogFilter_Impl* pAllFilter = implAddFilter( aAll, FILEDIALOG_FILTER_ALL ); _pImp->InsertFilterListEntry( pAllFilter ); _pImp->SetCurFilter( pAllFilter, aAll ); } @@ -2295,7 +2295,7 @@ void SvtFileDialog::InitSize() { SetWindowState(OUStringToOString(aDlgOpt.GetWindowState(), osl_getThreadTextEncoding())); - Any aUserData = aDlgOpt.GetUserItem( OUString( "UserData" )); + Any aUserData = aDlgOpt.GetUserItem( "UserData"); OUString sCfgStr; if ( aUserData >>= sCfgStr ) _pFileView->SetConfigString( sCfgStr ); |