Make string parameter a const reference

Spotted by Coverity scan.
This commit is contained in:
Jean-Marc Lasgouttes 2024-09-13 10:27:24 +02:00
parent 8e181e992d
commit 9b3c28178c

View 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;