diff options
author | Vitor Sousa <vitorsousasilva@gmail.com> | 2015-02-04 16:34:30 -0200 |
---|---|---|
committer | Felipe Magno de Almeida <felipe@expertisesolutions.com.br> | 2015-02-04 17:20:38 -0200 |
commit | 420e6ef514543648473c42969cc405bfd0090b05 (patch) | |
tree | d0cff93d77cac35973d160f467465779077fed00 | |
parent | 50307822901289428da4bd79c26a17f1ea962807 (diff) | |
download | efl-devs/felipealmeida/cxx_gen_fix.tar.gz |
eolian_cxx: Fix build error for some generated C++ wrappersdevs/felipealmeida/cxx_gen_fix
Name generation for some C++ wrapper functions were adding an illegal ":"
in the function name.
Fixed the logical error that was causing this to happens when converting
namespaces to function prefixes.
@fix
-rw-r--r-- | src/lib/eolian_cxx/grammar/inheritance_base_generator.hh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eolian_cxx/grammar/inheritance_base_generator.hh b/src/lib/eolian_cxx/grammar/inheritance_base_generator.hh index 82678496ee..38382d5092 100644 --- a/src/lib/eolian_cxx/grammar/inheritance_base_generator.hh +++ b/src/lib/eolian_cxx/grammar/inheritance_base_generator.hh @@ -21,7 +21,7 @@ _ns_as_prefix(eo_class const& cls) std::string::size_type found = s.find("::"); while (found != std::string::npos) { - s.replace(found, 1, "_"); + s.replace(found, 2, "_"); found = s.find("::"); } return s; |