mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-19 11:49:09 +00:00
GCC 5.1 fix: nullptr != false
This commit is contained in:
@ -227,7 +227,7 @@ PyObject* plPythonPack::OpenPacked(const plString& fileName)
|
||||
bool plPythonPack::IsPackedFile(const plString& fileName)
|
||||
{
|
||||
if (!Open())
|
||||
return nil;
|
||||
return false;
|
||||
|
||||
plString pythonName = fileName + ".py";
|
||||
|
||||
|
@ -1247,7 +1247,7 @@ bool plgAudioSys::SupportsEAX(const char *deviceName)
|
||||
{
|
||||
return fSys->SupportsEAX(deviceName);
|
||||
}
|
||||
return nil;
|
||||
return false;
|
||||
}
|
||||
|
||||
void plgAudioSys::RegisterSoftSound( const plKey soundKey )
|
||||
|
@ -361,7 +361,7 @@ bool plResManager::IReadObject(plKeyImp* pKey, hsStream *stream)
|
||||
|
||||
hsAssert(pKey, "Null Key");
|
||||
if (pKey->GetUoid().GetLoadMask().DontLoad())
|
||||
return nil;
|
||||
return false;
|
||||
|
||||
hsAssert(pKey->GetStartPos() != uint32_t(-1), "Missing StartPos");
|
||||
hsAssert(pKey->GetDataLen() != uint32_t(-1), "Missing Data Length");
|
||||
|
@ -221,7 +221,7 @@ bool plFontFreeType::ImportFreeType( const plFileName &fontPath, Options *opt
|
||||
if( ch->fBitmapOff > ( ( fWidth * ( fHeight - ftBitmap->bitmap.rows ) * fBPP ) >> 3 ) )
|
||||
{
|
||||
hsAssert( false, "Invalid position found in IGetFreeCharData()" );
|
||||
return nil;
|
||||
return false;
|
||||
}
|
||||
|
||||
// Set these now, since setting them before would've changed the IGetFreeCharData results
|
||||
|
Reference in New Issue
Block a user