diff options
Diffstat (limited to 'cui/source/customize/acccfg.cxx')
-rw-r--r-- | cui/source/customize/acccfg.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx index d12c2a97bad5..c71d0d3911ed 100644 --- a/cui/source/customize/acccfg.cxx +++ b/cui/source/customize/acccfg.cxx @@ -1354,9 +1354,7 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, LoadHdl, sfx2::FileDialogHelper*, void xComponent.set(xCfgMgr, uno::UNO_QUERY); if (xComponent.is()) xComponent->dispose(); - xComponent.set(xRootStorage, uno::UNO_QUERY); - if (xComponent.is()) - xComponent->dispose(); + xRootStorage->dispose(); } } catch(const uno::RuntimeException&) @@ -1430,12 +1428,9 @@ IMPL_LINK_NOARG(SfxAcceleratorConfigPage, SaveHdl, sfx2::FileDialogHelper*, void if (xRootStorage.is()) { - uno::Reference<lang::XComponent> xComponent(xCfgMgr, uno::UNO_QUERY); - if (xComponent.is()) - xComponent->dispose(); - xComponent.set(xRootStorage, uno::UNO_QUERY); - if (xComponent.is()) - xComponent->dispose(); + if (xCfgMgr.is()) + xCfgMgr->dispose(); + xRootStorage->dispose(); } } catch(const uno::RuntimeException&) |