summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-07-11 16:33:02 +0200
committerNoel Grandin <noel@peralex.com>2014-07-14 11:07:47 +0200
commitb43fdc54e534b9fae1d0e4deb45a4357120f8af4 (patch)
tree17535c42bb561334ea890f6408dd2f744561a769 /svtools
parent0c6c66b64a9572a8e474f6dfdedcbebfe54758af (diff)
cid#1194925 Resource leak
add an assert so that coverity knows the leak can't happen Change-Id: I0109309ccc53b1b22420cbf9ac497d8d677a4ea7
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/roadmap.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/svtools/source/control/roadmap.cxx b/svtools/source/control/roadmap.cxx
index 11f65963e5f7..01960b8dfb81 100644
--- a/svtools/source/control/roadmap.cxx
+++ b/svtools/source/control/roadmap.cxx
@@ -365,8 +365,11 @@ namespace svt
void ORoadmap::InsertRoadmapItem( ItemIndex _Index, const OUString& _RoadmapItem, ItemId _nUniqueId, bool _bEnabled )
{
+ // make coverity happy, because then it knows the return value from InsertHyperLabel won't leak
+ assert( _nUniqueId != RMINCOMPLETE );
+
InsertHyperLabel( _Index, _RoadmapItem, _nUniqueId, _bEnabled );
- // Todo: YPos is superfluous, if items are always appended
+ // TODO YPos is superfluous, if items are always appended
UpdatefollowingHyperLabels( _Index + 1 );
}