Add Zoom/Expand icon
[ardour.git] / libs / pbd / stateful_diff_command.cc
index ffd56c8fb1866d62b7f0b6d82185158e0cde926c..5721b58fd0382d878c693d2903b551bd5f8beb41 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2010 Paul Davis 
+    Copyright (C) 2010 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 
 */
 
-#include <iostream>
-
 #include "pbd/stateful_diff_command.h"
 #include "pbd/property_list.h"
 #include "pbd/demangle.h"
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace PBD;
 
 /** Create a new StatefulDiffCommand by examining the changes made to a Stateful
- *  since the last time that clear_history was called on it.
+ *  since the last time that clear_changes was called on it.
  *  @param s Stateful object.
  */
 
@@ -113,8 +111,14 @@ StatefulDiffCommand::get_state ()
         XMLNode* changes = new XMLNode (X_("Changes"));
 
         _changes->get_changes_as_xml (changes);
-        
+
         node->add_child_nocopy (*changes);
 
        return *node;
 }
+
+bool
+StatefulDiffCommand::empty () const
+{
+       return _changes->empty();
+}