aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2015-02-04 16:34:30 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2015-02-04 17:20:38 -0200
commit420e6ef514543648473c42969cc405bfd0090b05 (patch)
treed0cff93d77cac35973d160f467465779077fed00
parentecore-x: Port deprecated API and new API function to xcb (diff)
downloadefl-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.hh2
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;