forked from enlightenment/efl
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:
parent
5f2fda2c18
commit
09be34b825
|
@ -21,7 +21,7 @@ _ns_as_prefix(eo_class const& cls)
|
||||||
std::string::size_type found = s.find("::");
|
std::string::size_type found = s.find("::");
|
||||||
while (found != std::string::npos)
|
while (found != std::string::npos)
|
||||||
{
|
{
|
||||||
s.replace(found, 1, "_");
|
s.replace(found, 2, "_");
|
||||||
found = s.find("::");
|
found = s.find("::");
|
||||||
}
|
}
|
||||||
return s;
|
return s;
|
||||||
|
|
Loading…
Reference in New Issue