summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorSavio Sena <savio@expertisesolutions.com.br>2014-09-12 16:41:33 -0300
committerSavio Sena <savio@expertisesolutions.com.br>2014-09-12 16:41:33 -0300
commit3c900530911b8fb283201d323039e81b9f4390cd (patch)
tree26334264a082dd701e5245da743f7076569dba92 /src/bin
parent8722d2b9a5480e5eec518db3e949487fe42a130c (diff)
eolian-cxx: Simply use find_replace instead of long form.
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/eolian_cxx/eolian_wrappers.hh9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/bin/eolian_cxx/eolian_wrappers.hh b/src/bin/eolian_cxx/eolian_wrappers.hh
index 6144f9d3fd..1a90c86173 100644
--- a/src/bin/eolian_cxx/eolian_wrappers.hh
+++ b/src/bin/eolian_cxx/eolian_wrappers.hh
@@ -84,13 +84,8 @@ class_eo_name(Eolian_Class const& klass)
84 default: 84 default:
85 break; 85 break;
86 } 86 }
87 std::string s = class_full_name(klass) + "_" + suffix; 87 return safe_upper
88 std::transform(s.begin(), s.end(), s.begin(), 88 (find_replace(class_full_name(klass) + "_" + suffix, ".", "_"));
89 [](int c)
90 {
91 return c == '.' ? '_' : c ;
92 });
93 return safe_upper(s);
94} 89}
95 90
96inline std::string 91inline std::string