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:
parent
753be8826e
commit
16f6149a09
1 changed files with 2 additions and 2 deletions
|
@ -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("??"))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue