mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 10:52:46 +00:00
Fix a bunch of warnings from clang.
This commit is contained in:
@ -297,7 +297,7 @@ void plBSDiffBuffer::GetBuffer( UInt32 &length, void *&bufferPtr )
|
||||
if (fPatchBuffer && fPatchLength)
|
||||
{
|
||||
length = fPatchLength;
|
||||
if (bufferPtr = (void *)TRACKED_NEW unsigned char[ length ])
|
||||
if ((bufferPtr = (void *)new unsigned char[ length ]))
|
||||
memcpy(bufferPtr, fPatchBuffer, length);
|
||||
}
|
||||
else
|
||||
@ -432,7 +432,7 @@ UInt32 plBSDiffBuffer::Patch( UInt32 oldLength, void *oldBuffer, UInt32 &newLeng
|
||||
|
||||
if(newpos != newend)
|
||||
{
|
||||
delete[] newBuffer;
|
||||
delete[] (unsigned char*)newBuffer;
|
||||
newLength = 0;
|
||||
}
|
||||
|
||||
|
@ -376,7 +376,7 @@ class plPageFinder : public plRegistryPageIterator
|
||||
}
|
||||
|
||||
// Try for full location
|
||||
sprintf( str, "%s_%s_%s", info.GetAge(), info.GetPage() );
|
||||
sprintf( str, "%s_%s", info.GetAge(), info.GetPage() );
|
||||
if( stricmp( str, fFindString ) == 0 )
|
||||
{
|
||||
*fPagePtr = node;
|
||||
|
Reference in New Issue
Block a user