diff --git a/include/plasp/LanguageDetection.h b/include/plasp/LanguageDetection.h index 4dd6c9e..39c9df5 100644 --- a/include/plasp/LanguageDetection.h +++ b/include/plasp/LanguageDetection.h @@ -21,7 +21,7 @@ Language::Type detectLanguage(utils::Parser &parser) // SAS begins with "begin_version" if (parser.probe("begin")) { - parser.seek(std::ios::beg); + parser.seek(0); return Language::Type::SAS; } diff --git a/src/plasp/utils/Parser.cpp b/src/plasp/utils/Parser.cpp index a543c7a..daf51bf 100644 --- a/src/plasp/utils/Parser.cpp +++ b/src/plasp/utils/Parser.cpp @@ -91,7 +91,7 @@ void Parser::readFile(const boost::filesystem::path &path) void Parser::reset() { m_stream.clear(); - seek(std::ios::beg); + seek(0); } ////////////////////////////////////////////////////////////////////////////////////////////////////