diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-07-24 04:10:04 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-07-24 05:18:23 +0200 |
commit | f1fda07e126ddb1333ecbd2429ede8098ac9f1c0 (patch) | |
tree | e3a64dc7d3d6a185f9765e81f9ef79c44aabb5eb /desktop | |
parent | 1ba34e905f717f15afabb514d9740d53c85e4af4 (diff) |
Drop unneeded initialization
Change-Id: Ieac1a0acb97664f3b86e2524cab79fd278f42e0e
Reviewed-on: https://gerrit.libreoffice.org/76210
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index b553ba6b8b17..5a908f2dd8f6 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2216,15 +2216,12 @@ static void doc_iniUnoCommands () for (const auto & sUnoCommand : sUnoCommands) { - const SfxSlot* pSlot = nullptr; - aCommandURL.Complete = sUnoCommand; xParser->parseStrict(aCommandURL); - pSlot = rSlotPool.GetUnoSlot(aCommandURL.Path); // when null, this command is not supported by the given component // (like eg. Calc does not have ".uno:DefaultBullet" etc.) - if (pSlot) + if (const SfxSlot* pSlot = rSlotPool.GetUnoSlot(aCommandURL.Path)) { // Initialize slot to dispatch .uno: Command. pViewFrame->GetBindings().GetDispatch(pSlot, aCommandURL, false); |