diff options
author | bnagaev <[email protected]> | 2022-02-10 16:47:04 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:04 +0300 |
commit | d6449ba66291ff0c0d352c82e6eb3efb4c8a7e8d (patch) | |
tree | d5dca6d44593f5e52556a1cc7b1ab0386e096ebe /contrib/libs/yaml-cpp/src/directives.cpp | |
parent | 1861d4c1402bb2c67a3e6b43b51706081b74508a (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/yaml-cpp/src/directives.cpp')
-rw-r--r-- | contrib/libs/yaml-cpp/src/directives.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/contrib/libs/yaml-cpp/src/directives.cpp b/contrib/libs/yaml-cpp/src/directives.cpp index 963bd2cd379..db778f2fffd 100644 --- a/contrib/libs/yaml-cpp/src/directives.cpp +++ b/contrib/libs/yaml-cpp/src/directives.cpp @@ -1,22 +1,22 @@ -#include "directives.h" - -namespace YAML { -Directives::Directives() { - // version - version.isDefault = true; - version.major = 1; - version.minor = 2; -} - -const std::string Directives::TranslateTagHandle( - const std::string& handle) const { - std::map<std::string, std::string>::const_iterator it = tags.find(handle); - if (it == tags.end()) { - if (handle == "!!") - return "tag:yaml.org,2002:"; - return handle; - } - - return it->second; -} -} +#include "directives.h" + +namespace YAML { +Directives::Directives() { + // version + version.isDefault = true; + version.major = 1; + version.minor = 2; +} + +const std::string Directives::TranslateTagHandle( + const std::string& handle) const { + std::map<std::string, std::string>::const_iterator it = tags.find(handle); + if (it == tags.end()) { + if (handle == "!!") + return "tag:yaml.org,2002:"; + return handle; + } + + return it->second; +} +} |