[LyX/master] Make docstring parameters const references
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Thu Sep 12 16:29:07 UTC 2024
commit 7a99ef7fbbe5760e7d70e8ef6b446aebb0af04e2
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Thu Sep 12 18:28:26 2024 +0200
Make docstring parameters const references
Spotted by Coverity scan.
---
src/insets/InsetLabel.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/insets/InsetLabel.h b/src/insets/InsetLabel.h
index c2768af417..b4b3cb46f3 100644
--- a/src/insets/InsetLabel.h
+++ b/src/insets/InsetLabel.h
@@ -32,11 +32,11 @@ public:
///
docstring const & formattedCounter() const { return formatted_counter_; }
///
- void setCounterValue(docstring cv) { counter_value_ = cv; }
+ void setCounterValue(docstring const & cv) { counter_value_ = cv; }
///
- void setPrettyCounter(docstring pc) { pretty_counter_ = pc; }
+ void setPrettyCounter(docstring const & pc) { pretty_counter_ = pc; }
///
- void setFormattedCounter(docstring fc) { formatted_counter_ = fc; }
+ void setFormattedCounter(docstring const & fc) { formatted_counter_ = fc; }
///
int rowFlags() const override { return CanBreakBefore | CanBreakAfter; }
/// Updates only the label string, doesn't handle undo nor references.
More information about the lyx-cvs
mailing list