From 1e90dad2456f383c2624acc85ab62445440e1156 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Mon, 19 Mar 2012 09:37:10 +0000 Subject: Basic cWindow thread-safety git-svn-id: http://mc-server.googlecode.com/svn/trunk@420 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWindowOwner.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'source/cWindowOwner.h') diff --git a/source/cWindowOwner.h b/source/cWindowOwner.h index 91d78848c..71691aaed 100644 --- a/source/cWindowOwner.h +++ b/source/cWindowOwner.h @@ -3,11 +3,16 @@ class cWindow; class cBlockEntity; + + + + + class cWindowOwner { public: - cWindowOwner() : m_Window( 0 ) {} - void CloseWindow() { m_Window = 0; } + cWindowOwner() : m_Window( NULL ) {} + void CloseWindow() { m_Window = NULL; } void OpenWindow( cWindow* a_Window ) { m_Window = a_Window; } cWindow* GetWindow() { return m_Window; } @@ -17,4 +22,8 @@ public: private: cWindow* m_Window; cBlockEntity *m_Entity; -}; \ No newline at end of file +}; + + + + -- cgit v1.2.3