From 76a1ae0102bd53c3eb9278e7d5f59dfc439d2ac5 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Wed, 6 Jun 2012 04:28:50 +0000 Subject: [PATCH] Fixed emit of comment string --- wrap/FileWriter.h | 2 +- wrap/Method.cpp | 2 +- wrap/StaticMethod.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wrap/FileWriter.h b/wrap/FileWriter.h index f081b86ed..ecafc0c35 100644 --- a/wrap/FileWriter.h +++ b/wrap/FileWriter.h @@ -25,7 +25,7 @@ public: std::ostringstream oss; ///< Primary stream for operating on the file /** Create a writer with a filename and delimiter for the header comment */ - FileWriter(const std::string& filename, bool verbose, const std::string& comment_str=""); + FileWriter(const std::string& filename, bool verbose, const std::string& comment_str); /** Writes the contents of the stringstream to the file, checking if actually new */ void emit(bool add_header, bool force=false) const; diff --git a/wrap/Method.cpp b/wrap/Method.cpp index 7261c88a0..aeddca2e1 100644 --- a/wrap/Method.cpp +++ b/wrap/Method.cpp @@ -30,7 +30,7 @@ void Method::matlab_mfile(const string& classPath) const { // open destination m-file string wrapperFile = classPath + "/" + name + ".m"; - FileWriter file(wrapperFile, verbose_); + FileWriter file(wrapperFile, verbose_, "%"); // generate code string returnType = returnVal.matlab_returnType(); diff --git a/wrap/StaticMethod.cpp b/wrap/StaticMethod.cpp index 3dd9e7c8b..7bdba650b 100644 --- a/wrap/StaticMethod.cpp +++ b/wrap/StaticMethod.cpp @@ -31,7 +31,7 @@ void StaticMethod::matlab_mfile(const string& toolboxPath, const string& classNa // open destination m-file string full_name = className + "_" + name; string wrapperFile = toolboxPath + "/" + full_name + ".m"; - FileWriter file(wrapperFile, verbose); + FileWriter file(wrapperFile, verbose, "%"); // generate code string returnType = returnVal.matlab_returnType();