'this' can't be NULL in well-defined C++ code. This fixes a warning with clang 3.6 from Xcode 6.3.
Showing the changes to test/encoder/EncUT_InterfaceTest.cpp (1 of 1 file). Show all
Unified · Split
| @@ -95,7 +95,7 @@ TEST_F (EncInterfaceCallTest, SetOptionLTR) { · 94 unmodified lines | |||
| 95 | while (fileStream.read (buf.data(), frameSize) == frameSize) { | 95 | while (fileStream.read (buf.data(), frameSize) == frameSize) { |
| 96 | ret = encoder_->EncodeFrame (&pic, &info); | 96 | ret = encoder_->EncodeFrame (&pic, &info); |
| 97 | ASSERT_TRUE (ret == cmResultSuccess); | 97 | ASSERT_TRUE (ret == cmResultSuccess); |
| 98 | if (info.eFrameType != videoFrameTypeSkip && this != NULL) { | 98 | if (info.eFrameType != videoFrameTypeSkip) { |
| 99 | this->onEncodeFrame (info); | 99 | this->onEncodeFrame (info); |
| 100 | iFrameNum++; | 100 | iFrameNum++; |
| 101 | } | 101 | } |