From 60dfaa09679219868e58a44d6d86f5d8d524ce24 Mon Sep 17 00:00:00 2001 From: peterbell10 Date: Sat, 15 Jul 2017 03:09:55 +0100 Subject: Allocate redstone component handlers upfront --- src/Globals.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/Globals.h') diff --git a/src/Globals.h b/src/Globals.h index 777f8ca3d..dcac8dd94 100644 --- a/src/Globals.h +++ b/src/Globals.h @@ -175,10 +175,10 @@ template class SizeChecker; template class SizeChecker; // A macro to disallow the copy constructor and operator = functions -// This should be used in the private: declarations for any class that shouldn't allow copying itself +// This should be used in the declarations for any class that shouldn't allow copying itself #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ - TypeName(const TypeName &); \ - void operator =(const TypeName &) + TypeName(const TypeName &) = delete; \ + TypeName & operator =(const TypeName &) = delete // A macro that is used to mark unused local variables, to avoid pedantic warnings in gcc / clang / MSVC // Note that in MSVC it requires the full type of X to be known @@ -227,7 +227,6 @@ template class SizeChecker; #include #include #include - #include #include #include #endif -- cgit v1.2.3