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

coverity#736026 Invalid iterator comparison

Change-Id: I04bc103120256614fa76310d3ba0a51c560d9393
üst 239a586f
......@@ -150,8 +150,9 @@ void Diagram::build( )
output << "digraph datatree {" << std::endl;
#endif
dgm::Points::iterator aCurrPoint( getData()->getPoints( ).begin() );
dgm::Points::iterator aEndPoint( getData()->getPoints( ).end() );
dgm::Points& rPoints = getData()->getPoints();
dgm::Points::iterator aCurrPoint(rPoints.begin());
dgm::Points::iterator aEndPoint(rPoints.end());
while( aCurrPoint != aEndPoint )
{
#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