commit e6930ffec8be56f3a54dbf17f499ec14dd0cd59a
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Sep 11 17:25:03 2024 +0200
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, //<field to search, empty for all fields
- docstring entryType, //<entry type to display, empty for all
+ docstring const & field, //<field to search, empty for all
fields
+ docstring const & entryType, //<entry type to display, empty
for all
bool case_sensitive, //< set to true for case sensitive search.
bool reg_exp, //< set to true if \c str is a regular expression.
bool reset = false //< whether to reset and search all keys
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs