From 9b3c28178cf8835213e9da418dc66208a9afd6cd Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 13 Sep 2024 10:27:24 +0200 Subject: [PATCH] Make string parameter a const reference Spotted by Coverity scan. --- src/frontends/qt/GuiDelimiter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontends/qt/GuiDelimiter.cpp b/src/frontends/qt/GuiDelimiter.cpp index 479db87033..3d064288f5 100644 --- a/src/frontends/qt/GuiDelimiter.cpp +++ b/src/frontends/qt/GuiDelimiter.cpp @@ -82,7 +82,7 @@ static docstring fix_name(string const & str, bool big) } struct MathSymbol { - MathSymbol(char_type uc = '?', string icon = string()) + MathSymbol(char_type uc = '?', string const & icon = string()) : unicode(uc), icon(icon) {} char_type unicode;