Simplification

This commit is contained in:
Juergen Spitzmueller 2014-05-07 08:09:04 +02:00
parent ef05f7cca9
commit 5368645e70

View File

@ -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