]> git.lyx.org Git - lyx.git/commitdiff
Pass a pair of docstring arguments by address
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 11 Sep 2024 15:25:03 +0000 (17:25 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 11 Sep 2024 15:25:03 +0000 (17:25 +0200)
Spotted by Coverity scan.

src/frontends/qt/GuiCitation.cpp
src/frontends/qt/GuiCitation.h

index e9f9ec99373e422a2dab7e778143d6c0348a9e74..1800543d4a58b5fed96b72c91b83fe055e75ed05 100644 (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
index 948933a8e37c8d804489aa7830acb9e91d7bce7a..3fecfb208ffbb135fca2d3108e9e27621d1f0c2c 100644 (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