From 1863090b55163c5ba07c7476415a1b9d5b6c5bda Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 15 Jun 2020 15:19:22 -0700 Subject: [PATCH] [clang-tidy] make several member functions const Found with readability-make-member-function-const Signed-off-by: Rosen Penev --- src/tag.cpp | 2 +- src/tag.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tag.cpp b/src/tag.cpp index 35a1b46..9d36317 100644 --- a/src/tag.cpp +++ b/src/tag.cpp @@ -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; diff --git a/src/tag.h b/src/tag.h index c811f39..efa77f0 100644 --- a/src/tag.h +++ b/src/tag.h @@ -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;