Add missing const to Parser methods
This commit is contained in:
parent
17e6599749
commit
41bd1eb449
@ -58,9 +58,9 @@ namespace Opm {
|
||||
ErrorGuard& errors) const;
|
||||
|
||||
Deck parseFile(const std::string&,
|
||||
const ParseContext&);
|
||||
const ParseContext&) const;
|
||||
|
||||
Deck parseFile(const std::string& datafile);
|
||||
Deck parseFile(const std::string& datafile) const;
|
||||
|
||||
Deck parseString(const std::string &data,
|
||||
const ParseContext&,
|
||||
|
@ -941,12 +941,12 @@ bool parseState( ParserState& parserState, const Parser& parser ) {
|
||||
}
|
||||
|
||||
Deck Parser::parseFile(const std::string& dataFileName,
|
||||
const ParseContext& parseContext) {
|
||||
const ParseContext& parseContext) const {
|
||||
ErrorGuard errors;
|
||||
return this->parseFile(dataFileName, parseContext, errors);
|
||||
}
|
||||
|
||||
Deck Parser::parseFile(const std::string& dataFileName) {
|
||||
Deck Parser::parseFile(const std::string& dataFileName) const {
|
||||
ErrorGuard errors;
|
||||
return this->parseFile(dataFileName, ParseContext(), errors);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user