aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ioview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ioview.cpp')
-rw-r--r--src/ioview.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ioview.cpp b/src/ioview.cpp
index 1d32b11..cc0e8fc 100644
--- a/src/ioview.cpp
+++ b/src/ioview.cpp
@@ -463,8 +463,10 @@ make_savepoint(const gchar *filename)
}
savepoint_id++;
- /* NOTE: passes ownership of savepoint string to undo token */
- undo.push(new UndoTokenRestoreSavePoint(savepoint, filename));
+ /*
+ * NOTE: passes ownership of savepoint string to undo token.
+ */
+ undo.push_own<UndoTokenRestoreSavePoint>(savepoint, filename);
}
#endif
@@ -618,7 +620,7 @@ IOView::save(const gchar *filename)
attributes = get_file_attributes(filename);
make_savepoint(filename);
} else {
- undo.push(new UndoTokenRemoveFile(filename));
+ undo.push<UndoTokenRemoveFile>(filename);
}
}