diff options
author | madmaxoft <github@xoft.cz> | 2014-03-28 21:35:45 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-03-28 21:35:45 +0100 |
commit | 773ce7fde692e86531e1e92f42776e316b793d83 (patch) | |
tree | 33a45b7333f583292ed87983dba9563b2cad6f84 /src/Globals.h | |
parent | Fixed compilation after last PR merge. (diff) | |
download | cuberite-773ce7fde692e86531e1e92f42776e316b793d83.tar cuberite-773ce7fde692e86531e1e92f42776e316b793d83.tar.gz cuberite-773ce7fde692e86531e1e92f42776e316b793d83.tar.bz2 cuberite-773ce7fde692e86531e1e92f42776e316b793d83.tar.lz cuberite-773ce7fde692e86531e1e92f42776e316b793d83.tar.xz cuberite-773ce7fde692e86531e1e92f42776e316b793d83.tar.zst cuberite-773ce7fde692e86531e1e92f42776e316b793d83.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Globals.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Globals.h b/src/Globals.h index 3e62832b7..a1cee5c2f 100644 --- a/src/Globals.h +++ b/src/Globals.h @@ -264,11 +264,17 @@ template class SizeChecker<UInt16, 2>; #define assert_test(x) ( !!(x) || (assert(!#x), exit(1), 0)) #endif -/// A generic interface used mainly in ForEach() functions + + + + +/** A generic interface used mainly in ForEach() functions */ template <typename Type> class cItemCallback { public: - /// Called for each item in the internal list; return true to stop the loop, or false to continue enumerating + virtual ~cItemCallback() {} + + /** Called for each item in the internal list; return true to stop the loop, or false to continue enumerating */ virtual bool Item(Type * a_Type) = 0; } ; |