diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-03 11:33:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-03 12:49:39 +0100 |
commit | aa356e6076aa3bedb7f7c5681270462edd1fb2dd (patch) | |
tree | 3ebe7fd7b37cb879ab8548a3fd0f035732306f3a /xmloff | |
parent | 5e043613266113a873c55ad45ab0fb1ae14286e8 (diff) |
coverity#736024 help coverity out here
Change-Id: Ia89ed6792bbe84eb20a4b560b0dab4557ad6e8f9
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/script/XMLEventsImportContext.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/xmloff/source/script/XMLEventsImportContext.cxx b/xmloff/source/script/XMLEventsImportContext.cxx index e6edda892421..916e8b5dc0bb 100644 --- a/xmloff/source/script/XMLEventsImportContext.cxx +++ b/xmloff/source/script/XMLEventsImportContext.cxx @@ -174,11 +174,13 @@ bool XMLEventsImportContext::GetEventSequence( } // if we're not at the end, set the sequence - bool bRet = (aIter != aCollectEvents.end()); - if (bRet) + if (aIter != aCollectEvents.end()) + { rSequence = aIter->second; + return true; + } - return bRet; + return false; } void XMLEventsImportContext::AddEventValues( |