From: Jean-Marc Lasgouttes Date: Sun, 15 Sep 2019 21:29:47 +0000 (+0200) Subject: Pass variable by reference X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=75c8636eab624b13d6d7e299ff349de037c3a9cc;p=features.git Pass variable by reference Spotted by cppcheck --- diff --git a/src/mathed/InsetMathDecoration.cpp b/src/mathed/InsetMathDecoration.cpp index 1262370953..92696a82eb 100644 --- a/src/mathed/InsetMathDecoration.cpp +++ b/src/mathed/InsetMathDecoration.cpp @@ -168,7 +168,7 @@ void InsetMathDecoration::infoize(odocstream & os) const namespace { struct Attributes { Attributes() : over(false) {} - Attributes(bool o, string t) + Attributes(bool o, string const & t) : over(o), tag(t) {} bool over; string tag;