diff options
author | madmaxoft <github@xoft.cz> | 2014-03-28 21:37:31 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-03-28 21:37:31 +0100 |
commit | 18dad361893e570322531c1ccbd6968082448e19 (patch) | |
tree | 43229e1050ebbf0cdf0cfe370808cb29bc515d65 /src/Globals.h | |
parent | Implemented the msSpongePrint merge strategy. (diff) | |
parent | Fixed non-virtual destructors warnings. (diff) | |
download | cuberite-18dad361893e570322531c1ccbd6968082448e19.tar cuberite-18dad361893e570322531c1ccbd6968082448e19.tar.gz cuberite-18dad361893e570322531c1ccbd6968082448e19.tar.bz2 cuberite-18dad361893e570322531c1ccbd6968082448e19.tar.lz cuberite-18dad361893e570322531c1ccbd6968082448e19.tar.xz cuberite-18dad361893e570322531c1ccbd6968082448e19.tar.zst cuberite-18dad361893e570322531c1ccbd6968082448e19.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; } ; |