commit c26f662564df1afd580657d712453565bac6fb7e
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Feb 12 14:40:55 2025 +0100
Avoid copying docstring object (spotted by Coverity Scan)
---
src/Counters.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/Counters.cpp b/src/Counters.cpp
index 703125f537..a0d3a3bd6c 100644
--- a/src/Counters.cpp
+++ b/src/Counters.cpp
@@ -116,8 +116,7 @@ bool Counter::read(Lexer & lex)
lex.next();
docstring const key = lex.getDocString();
lex.next();
- docstring const value = lex.getDocString();
- ref_formats_[key] = value;
+ ref_formats_[key] = lex.getDocString();
// LYXERR0("refformat: " << key << " => " <<
value);
break;
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs