aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ring.h')
-rw-r--r--src/ring.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/ring.h b/src/ring.h
index 9b8b9d7..1d69d94 100644
--- a/src/ring.h
+++ b/src/ring.h
@@ -25,6 +25,7 @@
#include <Scintilla.h>
#include "sciteco.h"
+#include "memory.h"
#include "interface.h"
#include "undo.h"
#include "qregisters.h"
@@ -40,7 +41,7 @@ namespace SciTECO {
class Buffer : private IOView {
TAILQ_ENTRY(Buffer) buffers;
- class UndoTokenClose : public UndoTokenWithSize<UndoTokenClose> {
+ class UndoTokenClose : public UndoToken {
Buffer *buffer;
public:
@@ -129,7 +130,7 @@ public:
};
/* object declared in main.cpp */
-extern class Ring {
+extern class Ring : public Object {
/*
* Emitted after a buffer close
* The pointer is the only remaining reference to the buffer!
@@ -147,13 +148,6 @@ extern class Ring {
}
void run(void);
-
- gsize
- get_size(void) const
- {
- return buffer ? sizeof(*this) + sizeof(*buffer)
- : sizeof(*this);
- }
};
TAILQ_HEAD(Head, Buffer) head;