Pass a docstring parameter by address

Spotted by Coverity scan.
This commit is contained in:
Jean-Marc Lasgouttes 2024-09-11 17:30:33 +02:00
parent e6930ffec8
commit 13b05102f2
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ static ParamInfo const & findInfo(InsetCode code, string const & cmdName)
ParamInfo::ParamData::ParamData(std::string const & s, ParamType t,
ParamHandling h, bool ignore,
docstring default_value)
docstring const & default_value)
: name_(s), type_(t), handling_(h), ignore_(ignore),
default_value_(default_value)
{}

View File

@ -55,7 +55,7 @@ public:
///
ParamData(std::string const &, ParamType, ParamHandling = HANDLING_NONE,
bool ignore = false,
docstring default_value = docstring());
docstring const & default_value = docstring());
///
std::string name() const { return name_; }
///