summaryrefslogtreecommitdiff
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
parent50307822901289428da4bd79c26a17f1ea962807 (diff)
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)
21 std::string::size_type found = s.find("::"); 21 std::string::size_type found = s.find("::");
22 while (found != std::string::npos) 22 while (found != std::string::npos)
23 { 23 {
24 s.replace(found, 1, "_"); 24 s.replace(found, 2, "_");
25 found = s.find("::"); 25 found = s.find("::");
26 } 26 }
27 return s; 27 return s;