[LyX/master] Fix reference to temporary

Richard Kimberly Heck rikiheck at lyx.org
Sat Jul 29 17:27:13 UTC 2023


commit 95cc596b7d58bb83af48d957eabf35c55a8258ff
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date:   Sat Jul 29 14:41:22 2023 -0400

    Fix reference to temporary
---
 src/Counters.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/Counters.cpp b/src/Counters.cpp
index 6f04105..114b180 100644
--- a/src/Counters.cpp
+++ b/src/Counters.cpp
@@ -631,7 +631,7 @@ docstring Counters::formattedCounter(docstring const & name,
 	Counter const & ctr = it->second;
 
 	docstring const value = theCounter(name, lang);
-	docstring const & format =
+	docstring const format =
 		translateIfPossible(counterLabel(ctr.refFormat(prex), lang), lang);
 	if (format.empty())
 		return value;


More information about the lyx-cvs mailing list