clang-tidy: performance-unnecessary-copy-initialization in extensions

Change-Id: I85e9c4f7e6d1b20e83929bcfdbbedee7129ce4e7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176413
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
Noel Grandin 2024-11-11 19:32:15 +02:00
parent d71a40504b
commit 9ce6abe3d4
2 changed files with 2 additions and 2 deletions

View file

@ -430,7 +430,7 @@ DBChangeDialog_Impl::DBChangeDialog_Impl(weld::Window* pParent, const BibDataMan
try
{
OUString sActiveSource = pDatMan->getActiveDataSource();
const OUString& sActiveSource = pDatMan->getActiveDataSource();
for (const OUString& rSourceName : aConfig.GetDataSourceNames())
m_xSelectionLB->append_text(rSourceName);
m_xSelectionLB->select_text(sActiveSource);

View file

@ -407,7 +407,7 @@ namespace pcr
OUString aOldIdStr = pOldIdStrings[i];
aOldPureIdStr = aOldIdStr.copy( 1 );
}
OUString aNewPureIdStr = pNewPureIds[i];
const OUString& aNewPureIdStr = pNewPureIds[i];
for ( const Locale& rLocale : aLocaleSeq )
{