mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Pass a docstring parameter by address
Spotted by Coverity scan.
This commit is contained in:
parent
e6930ffec8
commit
13b05102f2
@ -99,7 +99,7 @@ static ParamInfo const & findInfo(InsetCode code, string const & cmdName)
|
|||||||
|
|
||||||
ParamInfo::ParamData::ParamData(std::string const & s, ParamType t,
|
ParamInfo::ParamData::ParamData(std::string const & s, ParamType t,
|
||||||
ParamHandling h, bool ignore,
|
ParamHandling h, bool ignore,
|
||||||
docstring default_value)
|
docstring const & default_value)
|
||||||
: name_(s), type_(t), handling_(h), ignore_(ignore),
|
: name_(s), type_(t), handling_(h), ignore_(ignore),
|
||||||
default_value_(default_value)
|
default_value_(default_value)
|
||||||
{}
|
{}
|
||||||
|
@ -55,7 +55,7 @@ public:
|
|||||||
///
|
///
|
||||||
ParamData(std::string const &, ParamType, ParamHandling = HANDLING_NONE,
|
ParamData(std::string const &, ParamType, ParamHandling = HANDLING_NONE,
|
||||||
bool ignore = false,
|
bool ignore = false,
|
||||||
docstring default_value = docstring());
|
docstring const & default_value = docstring());
|
||||||
///
|
///
|
||||||
std::string name() const { return name_; }
|
std::string name() const { return name_; }
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user