[Libreoffice-commits] core.git: sc/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sat Oct 10 18:02:06 UTC 2020


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

New commits:
commit c49ad87cc2b4ee5b5b20365a8f3e0f617112c406
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Oct 10 14:00:03 2020 +0100
Commit:     Caolán McNamara <caolanm at 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 <caolanm at 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();
                 }
             }


More information about the Libreoffice-commits mailing list