IFSSaver: style fix, check if NULL explicitly

This commit is contained in:
John Scipione
2014-05-15 17:41:44 -04:00
parent 694d9bc1e6
commit 664720405e
+3 -3
View File
@@ -226,7 +226,7 @@ IFSSaver::DirectDraw(int32 frame)
fLastDrawnFrame = -1;
int32 frames = frame - fLastDrawnFrame;
if (fDirectInfo.bits) {
if (fDirectInfo.bits != NULL) {
fIFS->Draw(NULL, &fDirectInfo, frames);
fLastDrawnFrame = frame;
}
@@ -252,7 +252,7 @@ IFSSaver::MessageReceived(BMessage* message)
{
switch (message->what) {
case kMsgToggleAdditive:
if (fLocker.Lock() && fIFS) {
if (fLocker.Lock() && fIFS != NULL) {
fAdditive = fAdditiveCB->Value() == B_CONTROL_ON;
fIFS->SetAdditive(fAdditive || fIsPreview);
fLocker.Unlock();
@@ -260,7 +260,7 @@ IFSSaver::MessageReceived(BMessage* message)
break;
case kMsgSetSpeed:
if (fLocker.Lock() && fIFS) {
if (fLocker.Lock() && fIFS != NULL) {
fSpeed = fSpeedS->Value();
fIFS->SetSpeed(fSpeed);
fLocker.Unlock();