changeset 49:576b9fba4677

Not much
author "David Bryant <bagnose@gmail.com>"
date Thu, 05 Aug 2010 22:49:41 +0930
parents 1b4c9ba58673
children fbabd1957c89
files doodle/core/undo.d doodle/dia/icanvas.d
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/doodle/core/undo.d	Tue Aug 03 17:37:21 2010 +0930
+++ b/doodle/core/undo.d	Thu Aug 05 22:49:41 2010 +0930
@@ -34,6 +34,11 @@
         d_time _timeStamp;
     }
 
+    this(in string description) {
+        _description = description;
+        _timeStamp = getUTCtime;
+    }
+
     this(in string description, d_time timeStamp) {
         assert(description);
         _description = description;
@@ -57,7 +62,7 @@
 
     void undo();
     void redo();
-    protected bool mergeImpl(Edit other) { return false; }
+    protected bool mergeImpl(Edit subsequent) { return false; }
 }
 
 interface IUndoManagerObserver {
@@ -66,6 +71,7 @@
                         in bool canRedo, in string redoDescription);
 }
 
+// XXX This interface doesn't appear to add any value
 interface IUndoManager {
     void addEdit(Edit edit);
     void undo();
--- a/doodle/dia/icanvas.d	Tue Aug 03 17:37:21 2010 +0930
+++ b/doodle/dia/icanvas.d	Thu Aug 05 22:49:41 2010 +0930
@@ -62,7 +62,7 @@
 
 abstract class Layer {
     this(in string name) {
-        mName = name.idup;
+        mName = name;
     }
 
     string name() const { return mName; }