use XML state to store processors in mixer (strips) and fixup crash caused by missing...
[ardour.git] / libs / ardour / ardour / configuration_variable.h
index fa149672be2920c1d5a1f6008e4fef01726332cb..a61283ecd0155bce6fa5ac0f3acf2150318f2bfc 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <sstream>
 #include <ostream>
+#include <iostream>
 
 #include <pbd/xml++.h>
 
@@ -65,7 +66,7 @@ class ConfigVariable : public ConfigVariableBase
        ConfigVariable (std::string str) : ConfigVariableBase (str) {}
        ConfigVariable (std::string str, T val) : ConfigVariableBase (str), value (val) {}
 
-       virtual bool set (T val, Owner owner) {
+       virtual bool set (T val, Owner owner = ARDOUR::ConfigVariableBase::Config) {
                if (val == value) {
                        miss ();
                        return false;
@@ -89,7 +90,7 @@ class ConfigVariable : public ConfigVariableBase
                child->add_property ("value", ss.str());
                node.add_child_nocopy (*child);
        }
-
+       
        bool set_from_node (const XMLNode& node, Owner owner) {
 
                if (node.name() == "Config") {