From 8c0600b37217f40e938afa8045ba524f400f9de4 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Thu, 11 Jan 2001 21:39:15 +0000 Subject: [PATCH] fixed meyers warnings --- src/libCom/osi/osiEvent.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/libCom/osi/osiEvent.h b/src/libCom/osi/osiEvent.h index bfd8eedba..1cec8c13c 100644 --- a/src/libCom/osi/osiEvent.h +++ b/src/libCom/osi/osiEvent.h @@ -27,13 +27,15 @@ public: class invalidSemaphore {}; /* exception */ class noMemory {}; /* exception */ private: + osiEvent ( const osiEvent & ); + osiEvent & operator = ( const osiEvent & ); semBinaryId id; }; -inline osiEvent::osiEvent () +inline osiEvent::osiEvent () : + id ( semBinaryCreate (semEmpty) ) { - this->id = semBinaryCreate (semEmpty); - if (this->id==0) { + if ( this->id == 0 ) { throwWithLocation ( noMemory () ); } }