clang-tidy: performance-unnecessary-copy-initialization in fpicker
Change-Id: I9ba5dd3d13390db5d2c6d03caf087c453ee09ba6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176415 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
parent
d0f5d10652
commit
66c3126960
3 changed files with 3 additions and 5 deletions
|
@ -241,7 +241,7 @@ void ImageProducer::ImplInitConsumer( const Graphic& rGraphic )
|
|||
void ImageProducer::ImplUpdateConsumer( const Graphic& rGraphic )
|
||||
{
|
||||
BitmapEx aBmpEx( rGraphic.GetBitmapEx() );
|
||||
Bitmap aBmp( aBmpEx.GetBitmap() );
|
||||
const Bitmap& aBmp( aBmpEx.GetBitmap() );
|
||||
BitmapScopedReadAccess pBmpAcc(aBmp);
|
||||
|
||||
if( !pBmpAcc )
|
||||
|
|
|
@ -323,13 +323,11 @@ int RemoteFilesDialog::GetSelectedServicePos()
|
|||
|
||||
void RemoteFilesDialog::AddFilter( const OUString& rFilter, const OUString& rType )
|
||||
{
|
||||
OUString sName = rFilter;
|
||||
|
||||
m_aFilters.emplace_back( rFilter, rType );
|
||||
if (rType.isEmpty())
|
||||
m_xFilter_lb->append_separator(u""_ustr);
|
||||
else
|
||||
m_xFilter_lb->append_text(sName);
|
||||
m_xFilter_lb->append_text(rFilter);
|
||||
|
||||
if (m_xFilter_lb->get_active() == -1)
|
||||
m_xFilter_lb->set_active(0);
|
||||
|
|
|
@ -161,7 +161,7 @@ void SvtExpFileDlg_Impl::InsertFilterListEntry(const SvtFileDialogFilter_Impl* p
|
|||
{
|
||||
// insert and set user data
|
||||
OUString sId(weld::toId(pFilterDesc));
|
||||
OUString sName = pFilterDesc->GetName();
|
||||
const OUString& sName = pFilterDesc->GetName();
|
||||
if (pFilterDesc->isGroupSeparator())
|
||||
m_xLbFilter->append_separator(sId);
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue