Pass variable by reference

Spotted by cppcheck
This commit is contained in:
Jean-Marc Lasgouttes 2019-09-15 23:29:47 +02:00
parent 17c827d177
commit b42e6e96d8

View File

@ -168,7 +168,7 @@ void InsetMathDecoration::infoize(odocstream & os) const
namespace { namespace {
struct Attributes { struct Attributes {
Attributes() : over(false) {} Attributes() : over(false) {}
Attributes(bool o, string t) Attributes(bool o, string const & t)
: over(o), tag(t) {} : over(o), tag(t) {}
bool over; bool over;
string tag; string tag;