[mlpack-svn] r11127 - mlpack/trunk/src/mlpack/core/util
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Jan 17 14:41:44 EST 2012
Author: jcline3
Date: 2012-01-17 14:41:44 -0500 (Tue, 17 Jan 2012)
New Revision: 11127
Modified:
mlpack/trunk/src/mlpack/core/util/save_restore_utility.cpp
Log:
We don't actually need a reference to the new child...
Modified: mlpack/trunk/src/mlpack/core/util/save_restore_utility.cpp
===================================================================
--- mlpack/trunk/src/mlpack/core/util/save_restore_utility.cpp 2012-01-17 19:34:04 UTC (rev 11126)
+++ mlpack/trunk/src/mlpack/core/util/save_restore_utility.cpp 2012-01-17 19:41:44 UTC (rev 11127)
@@ -53,9 +53,8 @@
it != parameters.end();
++it)
{
- xmlNodePtr child = xmlNewChild(root, NULL,
- BAD_CAST(*it).first.c_str(),
- BAD_CAST(*it).second.c_str());
+ xmlNewChild(root, NULL, BAD_CAST(*it).first.c_str(),
+ BAD_CAST(*it).second.c_str());
/* TODO: perhaps we'll add more later?
* xmlNewProp(child, BAD_CAST "attr", BAD_CAST "add more addibutes?"); */
}
More information about the mlpack-svn
mailing list