aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/undo.h
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-02-17 19:46:35 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-02-17 19:46:35 +0100
commit4b9bea141fc0ebe0350379d23ee5349e86bf9f1d (patch)
tree77c1fee641831f068c687e72091bfddae5826e68 /src/undo.h
parent1f6254d363954c2a6b5b5d19390eb1ef9b19cf13 (diff)
downloadsciteco-4b9bea141fc0ebe0350379d23ee5349e86bf9f1d.tar.gz
made UndoStack::push_msg() inline
Diffstat (limited to 'src/undo.h')
-rw-r--r--src/undo.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/undo.h b/src/undo.h
index 8d5d5d6..c667540 100644
--- a/src/undo.h
+++ b/src/undo.h
@@ -138,8 +138,12 @@ public:
void push(UndoToken *token);
- void push_msg(unsigned int iMessage,
- uptr_t wParam = 0, sptr_t lParam = 0);
+ inline void
+ push_msg(unsigned int iMessage,
+ uptr_t wParam = 0, sptr_t lParam = 0)
+ {
+ push(new UndoTokenMessage(iMessage, wParam, lParam));
+ }
template <typename Type>
inline Type &