summaryrefslogtreecommitdiff
path: root/AK/Weakable.h
diff options
context:
space:
mode:
authorBen Wiederhake <BenWiederhake.GitHub@gmx.de>2020-08-27 00:30:19 +0200
committerAndreas Kling <kling@serenityos.org>2020-08-30 09:43:49 +0200
commit184b454e2f1bf9fe9639cb3f57b4294c6a2a32ec (patch)
tree039ddde1f337f57e211230abf0baa69f411ddf85 /AK/Weakable.h
parent33138900de506f3c71803b084272d0422c75ae43 (diff)
downloadserenity-184b454e2f1bf9fe9639cb3f57b4294c6a2a32ec.zip
AK: Unbreak building with extra debug macros
Diffstat (limited to 'AK/Weakable.h')
-rw-r--r--AK/Weakable.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/AK/Weakable.h b/AK/Weakable.h
index 960b2a57c3..5d40a21632 100644
--- a/AK/Weakable.h
+++ b/AK/Weakable.h
@@ -30,7 +30,9 @@
#include "RefCounted.h"
#include "RefPtr.h"
-#define WEAKABLE_DEBUG
+#ifndef WEAKABLE_DEBUG
+# define WEAKABLE_DEBUG
+#endif
namespace AK {
@@ -64,7 +66,7 @@ public:
WeakPtr<T> make_weak_ptr();
protected:
- Weakable() {}
+ Weakable() { }
~Weakable()
{