History

Remove a redundant check of this!=NULL

'this' can't be NULL in well-defined C++ code. This fixes a warning with clang 3.6 from Xcode 6.3.

Martin Storsjö committed 11 years ago

Commit 1239bb21 parent 4da93241 file · +1 −1Browse files

Showing the changes to test/encoder/EncUT_InterfaceTest.cpp (1 of 1 file). Show all

Unified · Split

test/encoder/EncUT_InterfaceTest.cpp+1−1
@@ -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 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t