]> git.lyx.org Git - features.git/commitdiff
Pass variable by reference
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 15 Sep 2019 21:29:47 +0000 (23:29 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sun, 15 Sep 2019 21:29:47 +0000 (23:29 +0200)
Spotted by cppcheck

src/mathed/InsetMathDecoration.cpp

index 1262370953fe4a89c9808cc94dc2c7a3a27a59b0..92696a82ebbb2f9146eb3eda70fa24fbfe9900ed 100644 (file)
@@ -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;