From bf6d218cf5a638691fc063dfd167fef42bb3d790 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 8 Apr 2025 10:26:30 -0400 Subject: [PATCH] MT#62181 SBCCallProfile: pass string by reference Avoid copying twice Change-Id: I5a65e95682b06d69f2b3437a9afc1aa64dbee9d9 Warned-by: Coverity --- apps/sbc/SBCCallProfile.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sbc/SBCCallProfile.h b/apps/sbc/SBCCallProfile.h index 8927e377..82319f96 100644 --- a/apps/sbc/SBCCallProfile.h +++ b/apps/sbc/SBCCallProfile.h @@ -52,7 +52,7 @@ struct CCInterface { string cc_module; map cc_values; - CCInterface(string cc_name) + CCInterface(const string& cc_name) : cc_name(cc_name) { } CCInterface() { } };