Pass two string parameters as reference

Spotted by coverity
This commit is contained in:
Jean-Marc Lasgouttes 2024-01-12 16:02:36 +01:00
parent 1599c503df
commit 8dd9cfcf5c
2 changed files with 2 additions and 2 deletions

View 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

View 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;
///