From 9c5c905680f7cb58eb3d0fbf25725a50c17896da Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 11 Sep 2017 08:54:58 +0200 Subject: clang-tidy modernize-use-emplace in editeng..framework Change-Id: I7739c4f77c856d34f8484754244df13d8fef840e Reviewed-on: https://gerrit.libreoffice.org/42151 Tested-by: Jenkins Reviewed-by: Noel Grandin --- fpicker/source/office/RemoteFilesDialog.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpicker') diff --git a/fpicker/source/office/RemoteFilesDialog.cxx b/fpicker/source/office/RemoteFilesDialog.cxx index df8e1282e415..6d4194245f94 100644 --- a/fpicker/source/office/RemoteFilesDialog.cxx +++ b/fpicker/source/office/RemoteFilesDialog.cxx @@ -550,7 +550,7 @@ void RemoteFilesDialog::AddFilter( const OUString& rFilter, const OUString& rTyp if ( rType.isEmpty() ) sName = "------------------------------------------"; - m_aFilters.push_back( std::pair< OUString, OUString >( rFilter, rType ) ); + m_aFilters.emplace_back( rFilter, rType ); m_pFilter_lb->InsertEntry( sName ); if( m_pFilter_lb->GetSelectEntryPos() == LISTBOX_ENTRY_NOTFOUND ) @@ -1372,7 +1372,7 @@ void RemoteFilesDialog::UpdateControls( const OUString& rURL ) if( rFolder.mbIsFolder ) { - aFolders.push_back( std::pair< OUString, OUString > ( sTitle, aFolderName ) ); + aFolders.emplace_back( sTitle, aFolderName ); } // add entries to the autocompletion mechanism -- cgit