From: <ant...@us...> - 2008-10-03 06:24:22
|
Revision: 3424 http://oorexx.svn.sourceforge.net/oorexx/?rev=3424&view=rev Author: antiguru Date: 2008-10-03 06:24:18 +0000 (Fri, 03 Oct 2008) Log Message: ----------- Fix Linux compile warnings, complains about void* not deletable. Modified Paths: -------------- main/trunk/rexxapi/server/MacroSpaceManager.cpp main/trunk/rexxapi/server/MacroSpaceManager.hpp main/trunk/rexxapi/server/QueueManager.cpp main/trunk/rexxapi/server/QueueManager.hpp main/trunk/rexxapi/server/RegistrationManager.cpp Modified: main/trunk/rexxapi/server/MacroSpaceManager.cpp =================================================================== --- main/trunk/rexxapi/server/MacroSpaceManager.cpp 2008-10-03 00:17:08 UTC (rev 3423) +++ main/trunk/rexxapi/server/MacroSpaceManager.cpp 2008-10-03 06:24:18 UTC (rev 3424) @@ -65,7 +65,7 @@ */ void MacroItem::update(const char *data, size_t l, size_t p) { - delete (void *)imageBuffer; + delete [] imageBuffer; imageBuffer = data; imageSize = l; searchPosition = p; Modified: main/trunk/rexxapi/server/MacroSpaceManager.hpp =================================================================== --- main/trunk/rexxapi/server/MacroSpaceManager.hpp 2008-10-03 00:17:08 UTC (rev 3423) +++ main/trunk/rexxapi/server/MacroSpaceManager.hpp 2008-10-03 06:24:18 UTC (rev 3424) @@ -50,8 +50,8 @@ void update(const char *, size_t l, size_t p); ~MacroItem() { - delete [] (void *)name; // release the name and - delete [] (void*)imageBuffer; // image buffer + delete [] name; // release the name and + delete [] imageBuffer; // image buffer } MacroItem *next; // next macro in chain Modified: main/trunk/rexxapi/server/QueueManager.cpp =================================================================== --- main/trunk/rexxapi/server/QueueManager.cpp 2008-10-03 00:17:08 UTC (rev 3423) +++ main/trunk/rexxapi/server/QueueManager.cpp 2008-10-03 06:24:18 UTC (rev 3424) @@ -68,7 +68,7 @@ { waitSem.close(); // make sure our semaphore cleans up if we've used it. clear(); - delete [] (void *)queueName; // also delete the name + delete [] queueName; // also delete the name } /** Modified: main/trunk/rexxapi/server/QueueManager.hpp =================================================================== --- main/trunk/rexxapi/server/QueueManager.hpp 2008-10-03 00:17:08 UTC (rev 3423) +++ main/trunk/rexxapi/server/QueueManager.hpp 2008-10-03 06:24:18 UTC (rev 3424) @@ -63,7 +63,7 @@ { if (elementData != NULL) { - delete [] (void *)elementData; // release the element data too + delete [] elementData; // release the element data too } } Modified: main/trunk/rexxapi/server/RegistrationManager.cpp =================================================================== --- main/trunk/rexxapi/server/RegistrationManager.cpp 2008-10-03 00:17:08 UTC (rev 3423) +++ main/trunk/rexxapi/server/RegistrationManager.cpp 2008-10-03 06:24:18 UTC (rev 3424) @@ -88,9 +88,9 @@ */ RegistrationData::~RegistrationData() { - delete [] (void *)name; - delete [] (void *)moduleName; - delete [] (void *)procedureName; + delete [] name; + delete [] moduleName; + delete [] procedureName; SessionCookie *cookie = references; while (cookie != NULL) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |