[clang-tidy] make several member functions const

Found with readability-make-member-function-const

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2020-06-15 15:19:22 -07:00
parent be7492203e
commit 1863090b55
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ Tag::Tag(const Token& token)
}
}
std::string Tag::Translate(const Directives& directives) {
std::string Tag::Translate(const Directives& directives) const {
switch (type) {
case VERBATIM:
return value;

View File

@ -23,7 +23,7 @@ struct Tag {
};
Tag(const Token& token);
std::string Translate(const Directives& directives);
std::string Translate(const Directives& directives) const;
TYPE type;
std::string handle, value;