]> git.lyx.org Git - lyx.git/commitdiff
Make string parameter a const reference
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 13 Sep 2024 08:27:24 +0000 (10:27 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 13 Sep 2024 08:27:24 +0000 (10:27 +0200)
Spotted by Coverity scan.

src/frontends/qt/GuiDelimiter.cpp

index 479db8703395a858791a6a49acff07411e0fcf57..3d064288f53f420bb03d9a7c9eeba0370fec3dfa 100644 (file)
@@ -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;