From b42e6e96d893672484e2f4f1f5c9885f28994ca0 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sun, 15 Sep 2019 23:29:47 +0200 Subject: [PATCH] Pass variable by reference Spotted by cppcheck --- src/mathed/InsetMathDecoration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.2