sc/source/ui/view/editsh.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c49ad87cc2b4ee5b5b20365a8f3e0f617112c406
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Oct 10 14:00:03 2020 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sat Oct 10 20:01:16 2020 +0200

    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 <caol...@redhat.com>

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();
                 }
             }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to