From 09be34b82501fea8835299de72938cdf9c21c55a Mon Sep 17 00:00:00 2001 From: Vitor Sousa Date: Fri, 3 Apr 2015 16:30:46 +0200 Subject: [PATCH] eolian_cxx: fix build error for some generated C++ wrappers 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 --- src/lib/eolian_cxx/grammar/inheritance_base_generator.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;