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

Change-Id: I99d7b71b2e06c5fc016411c369b6e887a274ec4d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176436
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
This commit is contained in:
Noel Grandin 2024-11-11 22:04:14 +02:00
parent 753be8826e
commit 16f6149a09

View file

@ -169,8 +169,8 @@ void process_file_addr2line( const char* file, std::vector<FrameData>& frameData
{
// There should be two lines, first function name and second source file information.
// If each of them starts with ??, it is invalid/unknown.
OString function = lines[linesPos];
OString source = lines[linesPos+1];
const OString& function = lines[linesPos];
const OString& source = lines[linesPos+1];
linesPos += 2;
if(function.isEmpty() || function.startsWith("??"))
{