rework Stateful::set_state() patch to avoid default version argument
[ardour.git] / libs / pbd / stateful.cc
index a7cd3bdb236c2c4674bf31a167dc7ce6fec00eb6..58be141a275a846c523b39e3fd5d9c3e61d4a814 100644 (file)
 
 #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;
@@ -47,7 +52,7 @@ 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());