diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-23 17:20:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-24 09:24:57 +0100 |
commit | ef3e58c4989cc67e3f59955656676cde84831f69 (patch) | |
tree | d15a44344fed9a19bc79c1ed57ed597c379fcfa2 | |
parent | fbb78543d3ad357ecda093f70401a27e60483a5c (diff) |
coverity#736027 Invalid iterator comparison
Change-Id: I099c0562bc52f0625ceac202b34b01025a7fd35d
-rw-r--r-- | oox/source/drawingml/diagram/diagram.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/oox/source/drawingml/diagram/diagram.cxx b/oox/source/drawingml/diagram/diagram.cxx index 6a69032582d4..4a8f78416eec 100644 --- a/oox/source/drawingml/diagram/diagram.cxx +++ b/oox/source/drawingml/diagram/diagram.cxx @@ -223,8 +223,9 @@ void Diagram::build( ) ++aCurrPoint; } - dgm::Connections::const_iterator aCurrCxn( getData()->getConnections( ).begin() ); - const dgm::Connections::const_iterator aEndCxn( getData()->getConnections( ).end() ); + const dgm::Connections& rConnections = getData()->getConnections(); + dgm::Connections::const_iterator aCurrCxn(rConnections.begin()); + const dgm::Connections::const_iterator aEndCxn(rConnections.end()); while( aCurrCxn != aEndCxn ) { #if OSL_DEBUG_LEVEL > 1 |