diff options
Diffstat (limited to 'src/qregisters.h')
| -rw-r--r-- | src/qregisters.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/qregisters.h b/src/qregisters.h index 4648149..fc7a624 100644 --- a/src/qregisters.h +++ b/src/qregisters.h @@ -286,6 +286,12 @@ public: class QRegisterTable : private RBTreeString, public Object { class UndoTokenRemove : public UndoToken { + /* + * NOTE: Storing the table here is only necessary since + * we may have to remove from a global or local Q-Reg + * table. This could be avoided using a separate + * subclass for local registers. + */ QRegisterTable *table; QRegister *reg; @@ -303,7 +309,8 @@ class QRegisterTable : private RBTreeString, public Object { bool must_undo; public: - QRegisterTable(bool _undo = true); + QRegisterTable(bool _must_undo = true) + : must_undo(_must_undo) {} ~QRegisterTable() { @@ -339,6 +346,8 @@ public: return insert(buf); } + void insert_defaults(void); + inline QRegister * find(const gchar *name) { |
