clang-tidy: performance-unnecessary-copy-initialization in xmloff
Change-Id: I086167b3d24c125efac99180012e32d9851d49ba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176444 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
This commit is contained in:
@@ -113,7 +113,7 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< uno::XComponentConte
|
||||
}
|
||||
|
||||
std::vector< OUString > aCompleteResultVector;
|
||||
OUString scope = aURLParameter.get_scope();
|
||||
const OUString& scope = aURLParameter.get_scope();
|
||||
bool bCaptionsOnly = scope == "Heading";
|
||||
sal_Int32 hitCount = aURLParameter.get_hitCount();
|
||||
|
||||
@@ -297,7 +297,7 @@ ResultSetForQuery::ResultSetForQuery( const uno::Reference< uno::XComponentConte
|
||||
int nResultCount = aCompleteResultVector.size();
|
||||
for( int r = 0 ; r < nResultCount ; ++r )
|
||||
{
|
||||
OUString aURL = aCompleteResultVector[r];
|
||||
const OUString& aURL = aCompleteResultVector[r];
|
||||
OUString aResultStr = replWith + aURL.subView(replIdx);
|
||||
m_aPath.push_back( aResultStr );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user