summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-10-10 14:00:03 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-10-10 20:01:16 +0200
commitc49ad87cc2b4ee5b5b20365a8f3e0f617112c406 (patch)
treef0dde78b62e03a7029f229121471f2f2c5386973 /sc
parent2048dc640a1ddcadc7c0ea49ddabcee0f7d87624 (diff)
cid#1467975 Logically dead code
Change-Id: I6d226c696fd6100c61f7233d42d17f1858fe66d0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104169 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/view/editsh.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/editsh.cxx b/sc/source/ui/view/editsh.cxx
index f3b2060c651f..e12c5460c09d 100644
--- a/sc/source/ui/view/editsh.cxx
+++ b/sc/source/ui/view/editsh.cxx
@@ -310,7 +310,7 @@ void ScEditShell::Execute( SfxRequest& rReq )
if (pTopView)
{
pTopView->Paste();
- if (vcl::Window* pViewWindow = pTopView ? pTopView->GetWindow() : nullptr)
+ if (vcl::Window* pViewWindow = pTopView->GetWindow())
pViewWindow->GrabFocus();
}
}