summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-23 17:11:12 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-24 09:24:57 +0100
commitfbb78543d3ad357ecda093f70401a27e60483a5c (patch)
treea03fe66e07d2d523de1ad33caa17541181e6db81 /oox
parent239a586fb7d971bb4a2330bf2d4dd997b8bd60ca (diff)
coverity#736026 Invalid iterator comparison
Change-Id: I04bc103120256614fa76310d3ba0a51c560d9393
Diffstat (limited to 'oox')
-rw-r--r--oox/source/drawingml/diagram/diagram.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/oox/source/drawingml/diagram/diagram.cxx b/oox/source/drawingml/diagram/diagram.cxx
index 1c53d7497129..6a69032582d4 100644
--- a/oox/source/drawingml/diagram/diagram.cxx
+++ b/oox/source/drawingml/diagram/diagram.cxx
@@ -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