From edc85fb55f8adc30a1416c6c854c89097060fb21 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 23 Oct 2018 07:54:15 +0200 Subject: clang-tidy performance-unnecessary-copy-init in idl..reportdesign Change-Id: I4b2eda375bbfe1ba35a45168515d885935adcb76 Reviewed-on: https://gerrit.libreoffice.org/62217 Tested-by: Jenkins Reviewed-by: Noel Grandin --- idl/source/prj/database.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'idl') diff --git a/idl/source/prj/database.cxx b/idl/source/prj/database.cxx index e6521bdbf37b..c0b7b8cf9cea 100644 --- a/idl/source/prj/database.cxx +++ b/idl/source/prj/database.cxx @@ -284,7 +284,7 @@ SvMetaType * SvIdlDataBase::ReadKnownType( SvTokenStream & rInStm ) if( rTok.IsIdentifier() ) { - OString aName = rTok.GetString(); + const OString& aName = rTok.GetString(); for( const auto& aType : GetTypeList() ) { if( aType->GetName() == aName ) -- cgit