[LyX/master] Pass parameters of constructor by address

Jean-Marc Lasgouttes lasgouttes at lyx.org
Wed Sep 11 14:49:56 UTC 2024


commit 100075c8901a72d875f90f2e46ef02af29dc2f6f
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Wed Sep 11 16:25:45 2024 +0200

    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)
 	{}
 


More information about the lyx-cvs mailing list