]> git.lyx.org Git - lyx.git/commitdiff
Pass two string parameters as reference
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 12 Jan 2024 15:02:36 +0000 (16:02 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 12 Jan 2024 15:02:36 +0000 (16:02 +0100)
Spotted by coverity

src/insets/InsetIndex.cpp
src/insets/InsetIndex.h

index 67f932ed9758264cdbf72eedeb79a7ef5e2f546f..4227252093150fc7806be77ae72f99263f040f1d 100644 (file)
@@ -292,7 +292,7 @@ void InsetIndex::latex(otexstream & ios, OutputParams const & runparams_in) cons
 
 
 void InsetIndex::processLatexSorting(otexstream & os, OutputParams const & runparams,
-                               docstring const latex, docstring const spart) const
+                               docstring const & latex, docstring const & spart) const
 {
        if (contains(latex, '\\') && !contains(latex, '@')) {
                // Now we need to validate that all characters in
index b3fe2713d9e66d6079dcb340a303061a752ce4a1..860281b97085e95bc8759dbfeb016ac911b87e17 100644 (file)
@@ -81,7 +81,7 @@ private:
        void latex(otexstream &, OutputParams const &) const override;
        ///
        void processLatexSorting(otexstream &, OutputParams const &,
-                                docstring const, docstring const) const;
+                                docstring const &, docstring const &) const;
        ///
        bool showInsetDialog(BufferView *) const override;
        ///