commit d366bf23d244e98819f3c35d351eec0f8e3c6d76 Author: Jean-Marc Lasgouttes <lasgout...@lyx.org> Date: Thu Feb 13 11:29:21 2025 +0100
avoid temporary variable (spotted by Coverity Scan) --- src/frontends/qt/GuiBibtex.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/frontends/qt/GuiBibtex.cpp b/src/frontends/qt/GuiBibtex.cpp index a3b624a84f..88b3ea8b18 100644 --- a/src/frontends/qt/GuiBibtex.cpp +++ b/src/frontends/qt/GuiBibtex.cpp @@ -194,9 +194,8 @@ void GuiBibtex::selUpdated() fenc = cached_file_encodings_[key->text()]; else cached_file_encodings_[key->text()] = fenc; - docstring const enc = qstring_to_ucs4(key->text()) + " " + qstring_to_ucs4(fenc); if (!key->text().isEmpty() && !fenc.isEmpty() && fenc != "general") - nfe.push_back(enc); + nfe.push_back(qstring_to_ucs4(key->text()) + " " + qstring_to_ucs4(fenc)); } } selectionManager->update(); -- lyx-cvs mailing list lyx-cvs@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-cvs