Skip to content

Commit 8724dea

Browse files
committed
[clang-tidy] make several member functions const
Found with readability-make-member-function-const Signed-off-by: Rosen Penev <rosenp@gmail.com>
1 parent 6392ec6 commit 8724dea

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/tag.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Tag::Tag(const Token& token)
2929
}
3030
}
3131

32-
std::string Tag::Translate(const Directives& directives) {
32+
std::string Tag::Translate(const Directives& directives) const {
3333
switch (type) {
3434
case VERBATIM:
3535
return value;

src/tag.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct Tag {
2323
};
2424

2525
Tag(const Token& token);
26-
std::string Translate(const Directives& directives);
26+
std::string Translate(const Directives& directives) const;
2727

2828
TYPE type;
2929
std::string handle, value;

0 commit comments

Comments
 (0)