eolian-cxx: Simply use find_replace instead of long form.

This commit is contained in:
Savio Sena 2014-09-12 16:41:33 -03:00
parent 8722d2b9a5
commit 3c90053091
1 changed files with 2 additions and 7 deletions

View File

@ -84,13 +84,8 @@ class_eo_name(Eolian_Class const& klass)
default:
break;
}
std::string s = class_full_name(klass) + "_" + suffix;
std::transform(s.begin(), s.end(), s.begin(),
[](int c)
{
return c == '.' ? '_' : c ;
});
return safe_upper(s);
return safe_upper
(find_replace(class_full_name(klass) + "_" + suffix, ".", "_"));
}
inline std::string