mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Simplification
This commit is contained in:
parent
ef05f7cca9
commit
5368645e70
@ -890,8 +890,7 @@ bool InsetListingsParams::isFloat() const
|
|||||||
|
|
||||||
string InsetListingsParams::getParamValue(string const & param) const
|
string InsetListingsParams::getParamValue(string const & param) const
|
||||||
{
|
{
|
||||||
// is this parameter defined?
|
string par = getValue(param);
|
||||||
string par = (hasParam(param)) ? getValue(param) : string();
|
|
||||||
if (prefixIs(par, "{") && suffixIs(par, "}"))
|
if (prefixIs(par, "{") && suffixIs(par, "}"))
|
||||||
return par.substr(1, par.size() - 2);
|
return par.substr(1, par.size() - 2);
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user