Fix reference to temporary

This commit is contained in:
Richard Kimberly Heck 2023-07-29 14:41:22 -04:00
parent 7fb3773e60
commit 95cc596b7d

View File

@ -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;