#include <unistd.h>
-#include <pbd/stateful.h>
-#include <pbd/filesystem.h>
-#include <pbd/xml++.h>
-#include <pbd/error.h>
+#include "pbd/stateful.h"
+#include "pbd/filesystem.h"
+#include "pbd/xml++.h"
+#include "pbd/error.h"
#include "i18n.h"
+using namespace std;
+
namespace PBD {
+int Stateful::current_state_version = 0;
+int Stateful::loading_state_version = 0;
+
Stateful::Stateful ()
{
_extra_xml = 0;
// Do not delete _extra_xml. The use of add_child_nocopy()
// means it needs to live on indefinately.
- if (_instant_xml) {
- delete _instant_xml;
- }
+ delete _instant_xml;
}
void
Stateful::add_extra_xml (XMLNode& node)
{
if (_extra_xml == 0) {
- _extra_xml = new XMLNode ("extra");
+ _extra_xml = new XMLNode ("Extra");
}
_extra_xml->remove_nodes (node.name());