From: Jean-Marc Lasgouttes Date: Wed, 11 Sep 2024 14:25:45 +0000 (+0200) Subject: Pass parameters of constructor by address X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=100075c8901a72d875f90f2e46ef02af29dc2f6f;p=lyx.git Pass parameters of constructor by address Spotted by Coverity scan. --- diff --git a/src/insets/InsetNomencl.cpp b/src/insets/InsetNomencl.cpp index c62d9a1a62..5095a068a9 100644 --- a/src/insets/InsetNomencl.cpp +++ b/src/insets/InsetNomencl.cpp @@ -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) {}