[mlpack-svn] r14803 - mlpack/trunk/src/mlpack/core/util
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Apr 1 20:58:02 EDT 2013
Author: rcurtin
Date: 2013-04-01 20:58:01 -0400 (Mon, 01 Apr 2013)
New Revision: 14803
Modified:
mlpack/trunk/src/mlpack/core/util/save_restore_utility.cpp
Log:
Make Save() actually return a useful value.
Modified: mlpack/trunk/src/mlpack/core/util/save_restore_utility.cpp
===================================================================
--- mlpack/trunk/src/mlpack/core/util/save_restore_utility.cpp 2013-04-01 23:27:10 UTC (rev 14802)
+++ mlpack/trunk/src/mlpack/core/util/save_restore_utility.cpp 2013-04-02 00:58:01 UTC (rev 14803)
@@ -58,8 +58,10 @@
/* TODO: perhaps we'll add more later?
* xmlNewProp(child, BAD_CAST "attr", BAD_CAST "add more addibutes?"); */
}
- /* save the file */
- xmlSaveFormatFileEnc(filename.c_str(), xmlDocTree, "UTF-8", 1);
+
+ // Actually save the file.
+ success =
+ (xmlSaveFormatFileEnc(filename.c_str(), xmlDocTree, "UTF-8", 1) != -1);
xmlFreeDoc(xmlDocTree);
return success;
}
More information about the mlpack-svn
mailing list