diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-01 06:16:28 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-03-01 07:00:10 +0100 |
commit | 03bbfe0a5754091f68eab01b15c6fb5726cfbed7 (patch) | |
tree | f0bc4f2841b437be0d515b90d87a2459ec548be5 | |
parent | 2828fe2fd6d3698dc1686811c17675e74afd1642 (diff) |
coverity#705110: use of invalid iterator
Change-Id: I13bb65892ffe09fa6f8bb70321e8846edcdc728c
-rw-r--r-- | reportdesign/source/core/api/ReportDefinition.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx index 14592bc3bd57..d5abf5202343 100644 --- a/reportdesign/source/core/api/ReportDefinition.cxx +++ b/reportdesign/source/core/api/ReportDefinition.cxx @@ -2553,7 +2553,7 @@ void SAL_CALL OStylesHelper::replaceByName( const ::rtl::OUString& aName, const { ::osl::MutexGuard aGuard(m_aMutex); TStyleElements::iterator aFind = m_aElements.find(aName); - if ( aFind != m_aElements.end() ) + if ( aFind == m_aElements.end() ) throw container::NoSuchElementException(); if ( !aElement.isExtractableTo(m_aType) ) throw lang::IllegalArgumentException(); |