diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-05-19 17:17:48 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-05-19 17:17:48 +0200 |
commit | b02848767af071e2ff357e94d4cddf4940f7cc02 (patch) | |
tree | 1ae518a2148de3afdbb953915de9a2b90ffe3ea5 /fpicker/source | |
parent | 309115d8bb8f0c2610d027958dba0dd2e1c06c03 (diff) |
loplugin:stringcopy: fpicker
Change-Id: Iec08e4ed6241faba9b858e42cb6b55abdcdab3ee
Diffstat (limited to 'fpicker/source')
-rw-r--r-- | fpicker/source/office/OfficeControlAccess.cxx | 4 | ||||
-rw-r--r-- | fpicker/source/office/iodlg.cxx | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/fpicker/source/office/OfficeControlAccess.cxx b/fpicker/source/office/OfficeControlAccess.cxx index fbecfc328921..9f2f0f70813d 100644 --- a/fpicker/source/office/OfficeControlAccess.cxx +++ b/fpicker/source/office/OfficeControlAccess.cxx @@ -416,7 +416,7 @@ namespace svt case LISTBOX_FILTER: if ( ControlActions::GET_SELECTED_ITEM == _nControlAction ) { - aRet <<= OUString( m_pFilePickerController->getCurFilter() ); + aRet <<= m_pFilePickerController->getCurFilter(); } else { @@ -690,7 +690,7 @@ namespace svt switch ( _nProperty ) { case PropFlags::Text: - aReturn <<= OUString( _pControl->GetText() ); + aReturn <<= _pControl->GetText(); break; case PropFlags::Enabled: diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx index 2f0e5225906e..21195cda7b8f 100644 --- a/fpicker/source/office/iodlg.cxx +++ b/fpicker/source/office/iodlg.cxx @@ -1268,7 +1268,7 @@ IMPL_LINK_NOARG ( SvtFileDialog, AddPlacePressed_Hdl, Button*, void ) INetURLObject aURLObj( _pFileView->GetViewURL() ); PlacePtr newPlace( new Place( aURLObj.GetLastName(INetURLObject::DecodeMechanism::WithCharset), - OUString(_pFileView->GetViewURL()), true)); + _pFileView->GetViewURL(), true)); pImpl->_pPlaces->AppendPlace(newPlace); } @@ -1800,8 +1800,8 @@ short SvtFileDialog::PrepareExecute() try { INetURLObject aStdDir( GetStandardDir() ); - ::ucbhelper::Content aCnt( OUString( aStdDir.GetMainURL( - INetURLObject::DecodeMechanism::NONE ) ), + ::ucbhelper::Content aCnt( aStdDir.GetMainURL( + INetURLObject::DecodeMechanism::NONE ), Reference< XCommandEnvironment >(), comphelper::getProcessComponentContext() ); Sequence< OUString > aProps(2); |