summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-17 17:21:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-17 18:33:37 +0100
commit516a22afa5240d6a31a2b221cf1adda543178e7d (patch)
tree67de7cb125acbfd84a812f334e63d86d59f4415b /svtools
parent4af664af7003e93577a0aee67f251950fe529660 (diff)
coverity#704807 Dereference after null check
Change-Id: Ifbfdbc016cde790a2027a0036294b3be9e37a85c
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/roadmap.cxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/svtools/source/control/roadmap.cxx b/svtools/source/control/roadmap.cxx
index aeef0ffb28c0..cccb3cd732f2 100644
--- a/svtools/source/control/roadmap.cxx
+++ b/svtools/source/control/roadmap.cxx
@@ -725,14 +725,10 @@ namespace svt
void RoadmapItem::ImplUpdateIndex( const ItemIndex _nIndex )
{
- if ( mpDescription )
- mpDescription->SetIndex( _nIndex );
+ mpDescription->SetIndex( _nIndex );
- if ( mpID )
- {
- OUString aIDText = OUString::number( _nIndex + 1 ) + ".";
- mpID->SetText( aIDText );
- }
+ OUString aIDText = OUString::number( _nIndex + 1 ) + ".";
+ mpID->SetText( aIDText );
// update the geometry of both controls
ImplUpdatePosSize();