Fixed incorrect seek positions.
This commit is contained in:
parent
9ed7277ec9
commit
234938349c
@ -21,7 +21,7 @@ Language::Type detectLanguage(utils::Parser &parser)
|
|||||||
// SAS begins with "begin_version"
|
// SAS begins with "begin_version"
|
||||||
if (parser.probe<std::string>("begin"))
|
if (parser.probe<std::string>("begin"))
|
||||||
{
|
{
|
||||||
parser.seek(std::ios::beg);
|
parser.seek(0);
|
||||||
return Language::Type::SAS;
|
return Language::Type::SAS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +91,7 @@ void Parser::readFile(const boost::filesystem::path &path)
|
|||||||
void Parser::reset()
|
void Parser::reset()
|
||||||
{
|
{
|
||||||
m_stream.clear();
|
m_stream.clear();
|
||||||
seek(std::ios::beg);
|
seek(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||||
|
Reference in New Issue
Block a user