diff options
author | Florian Jung <flo@windfisch.org> | 2011-08-14 18:24:47 +0000 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2011-08-14 18:24:47 +0000 |
commit | 01d2680f0d18f7783ca1e1f48098590cd0317284 (patch) | |
tree | 4000612a2642f3e19da22ddd24244d323a9cedb4 /muse2/muse/cobject.h | |
parent | 6898f640d5a95ab9c175388f22c4c846b8dbe5ab (diff) |
removed the senseless (unsigned long)(some_pointer) stuff, as some_pointer
was stored as "real" (uncasted) pointer in the same struct
Diffstat (limited to 'muse2/muse/cobject.h')
-rw-r--r-- | muse2/muse/cobject.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/muse2/muse/cobject.h b/muse2/muse/cobject.h index 6244e876..48653f4b 100644 --- a/muse2/muse/cobject.h +++ b/muse2/muse/cobject.h @@ -77,19 +77,16 @@ class Toplevel { , M_PATCHBAY #endif /* PATCHBAY */ }; - Toplevel(ToplevelType t, unsigned long obj, TopWin* cobj) { + Toplevel(ToplevelType t, TopWin* obj) { _type = t; _object = obj; - _cobject = cobj; } ToplevelType type() const { return _type; } - unsigned long object() const { return _object; } - TopWin* cobject() const { return _cobject; } + TopWin* object() const { return _object; } private: ToplevelType _type; - unsigned long _object; - TopWin* _cobject; + TopWin* _object; }; typedef std::list <Toplevel> ToplevelList; |