diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 10:08:45 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-26 12:14:37 +0000 |
commit | 60bac4a8e47c87ec30e70d2c0120072aba931d5f (patch) | |
tree | 5d64a4221bb5b7f690a1840dfc37ebf411730fc6 /svtools | |
parent | f191139bcec033102ca209c43b4f542abf100f70 (diff) |
coverity#1266460 Argument cannot be negative
and
coverity#1266463 Argument cannot be negative
coverity#1266466 Argument cannot be negative
Change-Id: I4e910fa189be3b6cb8e9a6163a0d24dfcc1ef7d8
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/dialogs/roadmapwizard.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/source/dialogs/roadmapwizard.cxx b/svtools/source/dialogs/roadmapwizard.cxx index 649f970c92d9..8a6587e5394b 100644 --- a/svtools/source/dialogs/roadmapwizard.cxx +++ b/svtools/source/dialogs/roadmapwizard.cxx @@ -332,7 +332,7 @@ namespace svt // there is an item with this index in the roadmap - does it match what is requested by // the respective state in the active path? RoadmapTypes::ItemId nPresentItemId = m_pImpl->pRoadmap->GetItemID( nItemIndex ); - WizardState nRequiredState = rActivePath[ nItemIndex ]; + WizardState nRequiredState = rActivePath.at(nItemIndex); if ( nPresentItemId != nRequiredState ) { m_pImpl->pRoadmap->DeleteRoadmapItem( nItemIndex ); @@ -346,7 +346,7 @@ namespace svt bInsertItem = bNeedItem; } - WizardState nState( rActivePath[ nItemIndex ] ); + WizardState nState(rActivePath.at(nItemIndex)); if ( bInsertItem ) { m_pImpl->pRoadmap->InsertRoadmapItem( @@ -603,7 +603,7 @@ namespace svt // there is an item with this index in the roadmap - does it match what is requested by // the respective state in the active path? RoadmapTypes::ItemId nPresentItemId = m_pImpl->pRoadmap->GetItemID( nItemIndex ); - WizardState nRequiredState = rActivePath[ nItemIndex ]; + WizardState nRequiredState = rActivePath.at(nItemIndex); if ( _nState == nRequiredState ) { m_pImpl->pRoadmap->ChangeRoadmapItemLabel( nPresentItemId, getStateDisplayName( nRequiredState ) ); |