History

Avoid shadowing variables within functions

There is already a variable int iIdx declared just a few lines above.

Martin Storsjö committed 11 years ago

Commit 18a59541 parent b6670311 file · +1 −1Browse files

Showing the changes to test/api/encode_decode_api_test.cpp (1 of 1 file). Show all

Unified · Split

test/api/encode_decode_api_test.cpp+1−1
@@ -3398,7 +3398,7 @@ TEST_F (EncodeDecodeTestAPI, SimulcastAVC_SPS_PPS_LISTING) { · 3397 unmodified lines
33983398 int iIdx = 0;
33993399
34003400 //create decoder
3401− for (int iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {
3401+ for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {
34023402 pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) / 2));
34033403 EXPECT_TRUE (pBsBuf[iIdx] != NULL);
34043404

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