From 100075c8901a72d875f90f2e46ef02af29dc2f6f Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 11 Sep 2024 16:25:45 +0200 Subject: [PATCH] Pass parameters of constructor by address Spotted by Coverity scan. --- src/insets/InsetNomencl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {}