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

coverity#736027 Invalid iterator comparison

Change-Id: I099c0562bc52f0625ceac202b34b01025a7fd35d
üst fbb78543
...@@ -223,8 +223,9 @@ void Diagram::build( ) ...@@ -223,8 +223,9 @@ void Diagram::build( )
++aCurrPoint; ++aCurrPoint;
} }
dgm::Connections::const_iterator aCurrCxn( getData()->getConnections( ).begin() ); const dgm::Connections& rConnections = getData()->getConnections();
const dgm::Connections::const_iterator aEndCxn( getData()->getConnections( ).end() ); dgm::Connections::const_iterator aCurrCxn(rConnections.begin());
const dgm::Connections::const_iterator aEndCxn(rConnections.end());
while( aCurrCxn != aEndCxn ) while( aCurrCxn != aEndCxn )
{ {
#if OSL_DEBUG_LEVEL > 1 #if OSL_DEBUG_LEVEL > 1
......
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