]> git.lyx.org Git - lyx.git/commitdiff
Pass parameters of constructor by address
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 11 Sep 2024 14:25:45 +0000 (16:25 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 11 Sep 2024 14:25:45 +0000 (16:25 +0200)
Spotted by Coverity scan.

src/insets/InsetNomencl.cpp

index c62d9a1a622e57a8585b76e8d4b02fb170244979..5095a068a937abbca7921288ec9c43189028e0a2 100644 (file)
@@ -196,7 +196,7 @@ docstring InsetPrintNomencl::screenLabel() const
 
 struct NomenclEntry {
        NomenclEntry() : par(nullptr) {}
-       NomenclEntry(docstring s, docstring d, Paragraph const * p)
+       NomenclEntry(docstring const & s, docstring const & d, Paragraph const * p)
          : symbol(s), desc(d), par(p)
        {}