X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxlex.C;h=edb0896be26dd3ec0582ee8473aa76739f5d1633;hb=c727c6db7f2dd7f6a727462f5d11964888d0e76e;hp=69a1003678b95f05f474b67cc1af7696b992636c;hpb=6c300f72a217722652dc27db9108e1050028979c;p=lyx.git diff --git a/src/lyxlex.C b/src/lyxlex.C index 69a1003678..edb0896be2 100644 --- a/src/lyxlex.C +++ b/src/lyxlex.C @@ -99,7 +99,7 @@ void LyXLex::printError(string const & message) const } -bool LyXLex::setFile(string const & filename) +bool LyXLex::setFile(support::FileName const & filename) { return pimpl_->setFile(filename); } @@ -266,6 +266,16 @@ LyXLex & LyXLex::operator>>(std::string & s) } +LyXLex & LyXLex::operator>>(docstring & s) +{ + if (isOK()) { + next(); + s = getDocString(); + } + return *this; +} + + LyXLex & LyXLex::operator>>(double & s) { if (isOK()) {