diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2022-02-04 12:55:41 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2022-02-05 08:48:27 +0100 |
commit | b63a080c0c1dc9c3f2fc82e03d97d45d91dd7d16 (patch) | |
tree | 3941a954254c0f9239618a78e0275dece1450b3b | |
parent | 368ae1026db78478b54cb4dc4e06475ce29a3a55 (diff) |
Following simplify a bit ODatabaseDocument::impl_getUntitledHelper_throw
Change-Id: Iae6eafba5fffb8128526642f67dc932ddd115336
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129486
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
-rw-r--r-- | dbaccess/source/core/dataaccess/databasedocument.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/dbaccess/source/core/dataaccess/databasedocument.cxx b/dbaccess/source/core/dataaccess/databasedocument.cxx index 51a3457f7668..2bb57d234d42 100644 --- a/dbaccess/source/core/dataaccess/databasedocument.cxx +++ b/dbaccess/source/core/dataaccess/databasedocument.cxx @@ -2108,15 +2108,12 @@ uno::Reference< frame::XUntitledNumbers > ODatabaseDocument::impl_getUntitledHel m_xModuleManager.set( ModuleManager::create(m_pImpl->m_aContext) ); OUString sModuleId; - uno::Reference< frame::XUntitledNumbers > xNumberedControllers; - TNumberedController::const_iterator aFind = m_aNumberedControllers.end(); - if (_xComponent.is()) - { - sModuleId = m_xModuleManager->identify( _xComponent ); - aFind = m_aNumberedControllers.find(sModuleId); - } + sModuleId = m_xModuleManager->identify(_xComponent); + + uno::Reference< frame::XUntitledNumbers > xNumberedControllers; + TNumberedController::const_iterator aFind = m_aNumberedControllers.find(sModuleId); if ( aFind == m_aNumberedControllers.end() ) { rtl::Reference<::comphelper::NumberedCollection> pHelper = new ::comphelper::NumberedCollection(); |