diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-12-04 18:03:27 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-12-04 19:21:31 +0100 |
commit | bc95ece0618b9886890d9c758b9d0ebc0fc41c69 (patch) | |
tree | a5e918591c4e8f82aab70c42032ff15b6ce609ad /vcl | |
parent | 22e1cdd3a2fc142fc5313e1dba942810c7e91f95 (diff) |
cid#1546021 Using invalid iterator
and :
cid#1545983 Using invalid iterator
cid#1545969 Using invalid iterator
cid#1545949 Using invalid iterator
cid#1545929 Using invalid iterator
cid#1545911 Using invalid iterator
cid#1545910 Using invalid iterator
cid#1545886 Using invalid iterator
cid#1545870 Using invalid iterator
cid#1545813 Using invalid iterator
Change-Id: I2ad10c2a9affd348050a4abe0917a90927a52547
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160317
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/cnttype/mcnttype.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/cnttype/mcnttype.cxx b/vcl/source/cnttype/mcnttype.cxx index f41f5d25ea3a..cc5facf17717 100644 --- a/vcl/source/cnttype/mcnttype.cxx +++ b/vcl/source/cnttype/mcnttype.cxx @@ -63,7 +63,9 @@ OUString SAL_CALL CMimeContentType::getParameterValue( const OUString& aName ) if ( !hasParameter( lower ) ) throw css::container::NoSuchElementException( ); - return m_ParameterMap.find( lower )->second; + const auto iter = m_ParameterMap.find(lower); + assert(iter != m_ParameterMap.end()); + return iter->second; } void CMimeContentType::init( const OUString& aCntType ) |