From 60bac4a8e47c87ec30e70d2c0120072aba931d5f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 26 Jan 2015 10:08:45 +0000 Subject: coverity#1266460 Argument cannot be negative and coverity#1266463 Argument cannot be negative coverity#1266466 Argument cannot be negative Change-Id: I4e910fa189be3b6cb8e9a6163a0d24dfcc1ef7d8 --- svtools/source/dialogs/roadmapwizard.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svtools') 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 ) ); -- cgit