Kaydet (Commit) 2f0a0367 authored tarafından Caolán McNamara's avatar Caolán McNamara

CID#982610 inefficient iterator usage confusing coverity

Change-Id: I79142f5f1723fa2db0e729cb0dacb201e41077bc
üst 47bda1cf
......@@ -3444,16 +3444,8 @@ void HwpReader::makeTable(TxtBox * hbox)
// ----------- cell ---------------- //
int j = -1, k = -1;
for (int i = 0 ; i < static_cast<int>(tbl->cells.size()); i++)
for (std::list<TCell*>::iterator it = tbl->cells.begin(), aEnd = tbl->cells.end(); it != aEnd; ++it)
{
std::list<TCell*>::iterator it = tbl->cells.begin();
for( int ii = 0; it != tbl->cells.end(); ++it, ii++ )
{
if( ii == i )
break;
}
TCell *tcell = *it;
if( tcell->nRowIndex > j )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment