Fixed incorrect seek positions.

This commit is contained in:
Patrick Lühne 2016-06-22 08:59:18 +01:00
parent 9ed7277ec9
commit 234938349c
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ Language::Type detectLanguage(utils::Parser &parser)
// SAS begins with "begin_version"
if (parser.probe<std::string>("begin"))
{
parser.seek(std::ios::beg);
parser.seek(0);
return Language::Type::SAS;
}

View File

@ -91,7 +91,7 @@ void Parser::readFile(const boost::filesystem::path &path)
void Parser::reset()
{
m_stream.clear();
seek(std::ios::beg);
seek(0);
}
////////////////////////////////////////////////////////////////////////////////////////////////////