commit 7b3740adf883da038d4ba59d44842b534f8eec1b
Author: Jean-Marc Lasgouttes <lasgout...@lyx.org>
Date:   Thu Feb 13 12:19:47 2025 +0100

    avoid temporary variable (spotted by Coverity Scan)
---
 src/insets/InsetRef.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/insets/InsetRef.cpp b/src/insets/InsetRef.cpp
index 6c2e233d41..0486e509d5 100644
--- a/src/insets/InsetRef.cpp
+++ b/src/insets/InsetRef.cpp
@@ -314,8 +314,7 @@ void InsetRef::latex(otexstream & os, OutputParams const & 
rp) const
        else {
                InsetCommandParams p(REF_CODE, cmd);
                bool const use_nolink = hyper_on && getParam("nolink") == 
"true";
-               docstring const ref = getParam("reference");
-               p["reference"] = ref;
+               p["reference"] = getParam("reference");
                os << p.getCommand(rp, use_nolink);
        }
 
-- 
lyx-cvs mailing list
lyx-cvs@lists.lyx.org
https://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to