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
3398 int iIdx = 0;3398 int iIdx = 0;
3399 3399
3400 //create decoder3400 //create decoder
3401 for (int iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {3401 for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {
3402 pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) / 2));3402 pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) / 2));
3403 EXPECT_TRUE (pBsBuf[iIdx] != NULL);3403 EXPECT_TRUE (pBsBuf[iIdx] != NULL);
3404 3404

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