Browse Source

Merge pull request #483 from zrax/gcc51

GCC 5.1 fix: nullptr != false
Joseph Davies 10 years ago
parent
commit
0c54ac2150
  1. 2
      Sources/Plasma/FeatureLib/pfPython/plPythonPack.cpp
  2. 2
      Sources/Plasma/PubUtilLib/plAudio/plAudioSystem.cpp
  3. 2
      Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp
  4. 2
      Sources/Tools/plFontConverter/plFontFreeType.cpp

2
Sources/Plasma/FeatureLib/pfPython/plPythonPack.cpp

@ -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";

2
Sources/Plasma/PubUtilLib/plAudio/plAudioSystem.cpp

@ -1247,7 +1247,7 @@ bool plgAudioSys::SupportsEAX(const char *deviceName)
{
return fSys->SupportsEAX(deviceName);
}
return nil;
return false;
}
void plgAudioSys::RegisterSoftSound( const plKey soundKey )

2
Sources/Plasma/PubUtilLib/plResMgr/plResManager.cpp

@ -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");

2
Sources/Tools/plFontConverter/plFontFreeType.cpp

@ -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

Loading…
Cancel
Save