[Mobies-commit] [commit] r4305 - GReAT/trunk/Tools/CodeGenerator/CodeGenerator

ksmyth at redhat3.isis.vanderbilt.edu ksmyth at redhat3.isis.vanderbilt.edu
Wed Jun 18 10:01:27 CDT 2014


Author: ksmyth
Date: Wed Jun 18 10:01:27 2014
New Revision: 4305

Log:
CodeGenerator nested namespace fix. Thanks to Tim Belschner for the patch

Modified:
   GReAT/trunk/Tools/CodeGenerator/CodeGenerator/PE.CPP

Modified: GReAT/trunk/Tools/CodeGenerator/CodeGenerator/PE.CPP
==============================================================================
--- GReAT/trunk/Tools/CodeGenerator/CodeGenerator/PE.CPP	Mon Jun  9 05:30:30 2014	(r4304)
+++ GReAT/trunk/Tools/CodeGenerator/CodeGenerator/PE.CPP	Wed Jun 18 10:01:27 2014	(r4305)
@@ -680,7 +680,7 @@
 			string::size_type i = ns_path.find(delim);
 			while (i != string::npos)
 			{
-				ns_path.replace(i, i+1, "_");
+				ns_path.replace(i, delim.size(), "_");
 				i = ns_path.find(delim);
 			}
 			_initValue= parent+ "."+ ns_path+"_"+type+ "_kind_children()";


More information about the Mobies-commit mailing list