diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-05 20:35:16 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-08-06 08:39:45 +0200 |
commit | c6cd931d67cf491ea442f615d2e0796cb45c8449 (patch) | |
tree | 8107a0d08489f0a50d32993b70692af482a48a9b /xmloff/source/transform/EventOASISTContext.cxx | |
parent | 987c96d8a976338dcb8b5b8c4d1258b8fddb0093 (diff) |
loplugin:flatten in xml/transform
Change-Id: Ib428dca2e0afffd53f2f3a2c66682b60e8be43b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100190
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/transform/EventOASISTContext.cxx')
-rw-r--r-- | xmloff/source/transform/EventOASISTContext.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/xmloff/source/transform/EventOASISTContext.cxx b/xmloff/source/transform/EventOASISTContext.cxx index e975ba3099ca..e2e196b6a1de 100644 --- a/xmloff/source/transform/EventOASISTContext.cxx +++ b/xmloff/source/transform/EventOASISTContext.cxx @@ -49,24 +49,24 @@ public: XMLTransformerOASISEventMap_Impl::XMLTransformerOASISEventMap_Impl( XMLTransformerEventMapEntry const *pInit ) { - if( pInit ) + if( !pInit ) + return; + + XMLTransformerOASISEventMap_Impl::key_type aKey; + XMLTransformerOASISEventMap_Impl::mapped_type aData; + while( pInit->m_pOASISName ) { - XMLTransformerOASISEventMap_Impl::key_type aKey; - XMLTransformerOASISEventMap_Impl::mapped_type aData; - while( pInit->m_pOASISName ) - { - aKey.m_nPrefix = pInit->m_nOASISPrefix; - aKey.m_aLocalName = OUString::createFromAscii(pInit->m_pOASISName); + aKey.m_nPrefix = pInit->m_nOASISPrefix; + aKey.m_aLocalName = OUString::createFromAscii(pInit->m_pOASISName); - OSL_ENSURE( find( aKey ) == end(), "duplicate event map entry" ); + OSL_ENSURE( find( aKey ) == end(), "duplicate event map entry" ); - aData = OUString::createFromAscii(pInit->m_pOOoName); + aData = OUString::createFromAscii(pInit->m_pOOoName); - XMLTransformerOASISEventMap_Impl::value_type aVal( aKey, aData ); + XMLTransformerOASISEventMap_Impl::value_type aVal( aKey, aData ); - insert( aVal ); - ++pInit; - } + insert( aVal ); + ++pInit; } } |