From e6930ffec8be56f3a54dbf17f499ec14dd0cd59a Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 11 Sep 2024 17:25:03 +0200 Subject: [PATCH] Pass a pair of docstring arguments by address Spotted by Coverity scan. --- src/frontends/qt/GuiCitation.cpp | 2 +- src/frontends/qt/GuiCitation.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/frontends/qt/GuiCitation.cpp b/src/frontends/qt/GuiCitation.cpp index e9f9ec9937..1800543d4a 100644 --- a/src/frontends/qt/GuiCitation.cpp +++ b/src/frontends/qt/GuiCitation.cpp @@ -835,7 +835,7 @@ void GuiCitation::init() void GuiCitation::findKey(BiblioInfo const & bi, QString const & str, bool only_keys, - docstring field, docstring entry_type, + docstring const & field, docstring const & entry_type, bool case_sensitive, bool reg_exp, bool reset) { // FIXME THREAD diff --git a/src/frontends/qt/GuiCitation.h b/src/frontends/qt/GuiCitation.h index 948933a8e3..3fecfb208f 100644 --- a/src/frontends/qt/GuiCitation.h +++ b/src/frontends/qt/GuiCitation.h @@ -129,8 +129,8 @@ private: BiblioInfo const & bi, //< optimize by passing this QString const & str, //< string expression bool only_keys, //< set to true if only keys shall be searched. - docstring field, //