aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/undo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/undo.h')
-rw-r--r--src/undo.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/undo.h b/src/undo.h
index 028d73c..9fc5925 100644
--- a/src/undo.h
+++ b/src/undo.h
@@ -145,15 +145,13 @@ public:
~UndoTokenObject()
{
- if (obj)
- delete obj;
+ delete obj;
}
void
run(void)
{
- if (*ptr)
- delete *ptr;
+ delete *ptr;
*ptr = obj;
obj = NULL;
}