Pass a pair of docstring arguments by address

Spotted by Coverity scan.
This commit is contained in:
Jean-Marc Lasgouttes 2024-09-11 17:25:03 +02:00
parent 851e59cd26
commit e6930ffec8
2 changed files with 3 additions and 3 deletions

View File

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

View File

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