diff --git a/src/directives.cpp b/src/directives.cpp index f6e9587..4c1dc20 100644 --- a/src/directives.cpp +++ b/src/directives.cpp @@ -3,7 +3,7 @@ namespace YAML { Directives::Directives() : version{true, 1, 2}, tags{} {} -const std::string Directives::TranslateTagHandle( +std::string Directives::TranslateTagHandle( const std::string& handle) const { auto it = tags.find(handle); if (it == tags.end()) { diff --git a/src/directives.h b/src/directives.h index 333af26..18d14c9 100644 --- a/src/directives.h +++ b/src/directives.h @@ -19,7 +19,7 @@ struct Version { struct Directives { Directives(); - const std::string TranslateTagHandle(const std::string& handle) const; + std::string TranslateTagHandle(const std::string& handle) const; Version version; std::map tags; diff --git a/src/tag.cpp b/src/tag.cpp index df8a2cf..35a1b46 100644 --- a/src/tag.cpp +++ b/src/tag.cpp @@ -29,7 +29,7 @@ Tag::Tag(const Token& token) } } -const std::string Tag::Translate(const Directives& directives) { +std::string Tag::Translate(const Directives& directives) { switch (type) { case VERBATIM: return value; diff --git a/src/tag.h b/src/tag.h index ac30673..c811f39 100644 --- a/src/tag.h +++ b/src/tag.h @@ -23,7 +23,7 @@ struct Tag { }; Tag(const Token& token); - const std::string Translate(const Directives& directives); + std::string Translate(const Directives& directives); TYPE type; std::string handle, value;