Move ParsePsshdata function into base class.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=225035658
This commit is contained in:
Widevine Buildbot
2018-12-11 19:20:32 +00:00
parent c70235c0bd
commit d8e47135de
7 changed files with 31 additions and 133 deletions

View File

@@ -49,11 +49,11 @@ class ErrorSpaceImpl : public ErrorSpace {
// pointer to stateless static methods, so that clients of ErrorSpaceImpl are
// safe to have constexpr global instances.
static std::string SpaceNameImpl(const ErrorSpace* /*space*/) {
return T::SpaceName();
return T::space_name();
}
static std::string CodeToStringImpl(const ErrorSpace* /*space*/, int code) {
return T::CodeToString(code);
return T::code_to_string(code);
}
};