Fixed emit of comment string

release/4.3a0
Frank Dellaert 2012-06-06 04:28:50 +00:00
parent cdd5ba2517
commit 76a1ae0102
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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