From: Jean-Marc Lasgouttes Date: Fri, 13 Sep 2024 08:27:24 +0000 (+0200) Subject: Make string parameter a const reference X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9b3c28178cf8835213e9da418dc66208a9afd6cd;p=lyx.git Make string parameter a const reference Spotted by Coverity scan. --- 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;