From e23230de06f0a44cf03fb8f7f1bf4db961f9604f Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sun, 5 Dec 2010 15:54:14 +0000 Subject: [PATCH] * CppSpecWriter.cs: Remove unnecessary transformation for namespace separators. --- Source/Bind/CppSpecWriter.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Source/Bind/CppSpecWriter.cs b/Source/Bind/CppSpecWriter.cs index f1ace445..9e233671 100644 --- a/Source/Bind/CppSpecWriter.cs +++ b/Source/Bind/CppSpecWriter.cs @@ -208,7 +208,6 @@ namespace Bind { last_delegate = d; var parameters = d.Parameters.ToString() - .Replace(".", "::") .Replace("[OutAttribute]", String.Empty); sw.WriteLine("typedef {0} (*p{1}){2};", d.ReturnType, d.Name, parameters); sw.WriteLine("static p{0} {0};", d.Name); @@ -274,7 +273,6 @@ namespace Bind last_delegate = f.WrappedDelegate; var parameters = f.WrappedDelegate.Parameters.ToString() - .Replace(".", "::") .Replace("[OutAttribute]", String.Empty); sw.WriteLine("static inline {0} {1}{2}", f.WrappedDelegate.ReturnType, f.TrimmedName, parameters); @@ -304,9 +302,9 @@ namespace Bind static void WriteMethodBody(BindStreamWriter sw, Function f) { if (f.ReturnType != null && !f.ReturnType.ToString().ToLower().Contains("void")) - sw.WriteLine("return Delegates::{0}{1}", f.WrappedDelegate.Name, f.Parameters.CallString()); + sw.WriteLine("return Delegates::{0}{1};", f.WrappedDelegate.Name, f.Parameters.CallString()); else - sw.WriteLine("Delegates::{0}{1}", f.WrappedDelegate.Name, f.Parameters.CallString()); + sw.WriteLine("Delegates::{0}{1};", f.WrappedDelegate.Name, f.Parameters.CallString()); } static DocProcessor processor = new DocProcessor(Path.Combine(Settings.DocPath, Settings.DocFile));