int LyXLex::getInteger() const
{
- if (isStrInt(pimpl_->getString())) {
+ if (isStrInt(pimpl_->getString()))
return strToInt(pimpl_->getString());
- } else {
- pimpl_->printError("Bad integer `$$Token'");
- return -1;
- }
+ pimpl_->printError("Bad integer `$$Token'");
+ return -1;
}
string str = subst(pimpl_->getString(), ",", ".");
if (isStrDbl(str))
return strToDbl(str);
- else {
- pimpl_->printError("Bad float `$$Token'");
- return -1;
- }
+ pimpl_->printError("Bad float `$$Token'");
+ return -1;
}
// I would prefer to give a tag number instead of an explicit token
-// here, but it is not possible because Buffer::readLyXformat2 uses
+// here, but it is not possible because Buffer::readBody uses
// explicit tokens (JMarc)
string const LyXLex::getLongString(string const & endtoken)
{