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
This commit is contained in:
Vitor Sousa 2015-04-03 16:30:46 +02:00 committed by Cedric BAIL
parent 5f2fda2c18
commit 09be34b825
1 changed files with 1 additions and 1 deletions

View File

@ -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;