History

Avoid declaring a new variable shadowing an existing one in the same function

All the following loops below assume that int iIdx already is declared.

Martin Storsjö committed 11 years ago

Commit 6c1aa291 parent dc067281 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
@@ -3175,7 +3175,7 @@ TEST_F (EncodeDecodeTestAPI, SimulcastAVC) { · 3174 unmodified lines
31753175 int iIdx = 0;
31763176
31773177 //create decoder
3178− for (int iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {
3178+ for (iIdx = 0; iIdx < iSpatialLayerNum; iIdx++) {
31793179 pBsBuf[iIdx] = static_cast<unsigned char*> (malloc (iWidth * iHeight * 3 * sizeof (unsigned char) / 2));
31803180 aLen[iIdx] = 0;
31813181

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