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

Mike Kaganski (via logerrit) logerrit at kemper.freedesktop.org
Wed Apr 24 11:43:31 UTC 2019


 sc/source/core/data/document.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 230fa66d96d632287bbf06f257c00105293ef1a6
Author:     Mike Kaganski <mike.kaganski at collabora.com>
AuthorDate: Wed Apr 24 13:40:03 2019 +0200
Commit:     Mike Kaganski <mike.kaganski at collabora.com>
CommitDate: Wed Apr 24 13:41:45 2019 +0200

    simplify condition (remove always true part)
    
    Change-Id: If846bb08ec6eceb307228bc628a4b186a3058051
    Reviewed-on: https://gerrit.libreoffice.org/71230
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
    Tested-by: Mike Kaganski <mike.kaganski at collabora.com>

diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index d9cd4417f067..acc436a1b036 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -2570,8 +2570,7 @@ void ScDocument::SetClipParam(const ScClipParam& rParam)
 
 bool ScDocument::IsClipboardSource() const
 {
-    if (bIsClip || mpShell == nullptr ||
-        (mpShell && mpShell->IsLoading()))
+    if (bIsClip || mpShell == nullptr || mpShell->IsLoading())
         return false;
 
     ScDocument* pClipDoc = ScModule::GetClipDoc();


More information about the Libreoffice-commits mailing list