diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-24 13:40:03 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-24 13:41:45 +0200 |
commit | 230fa66d96d632287bbf06f257c00105293ef1a6 (patch) | |
tree | b50a6a0b0f80d78819bd1be83d6eff32538da2c9 | |
parent | 6e246024c8b7ad3d8b953f92a2e5a01686f3a00e (diff) |
simplify condition (remove always true part)
Change-Id: If846bb08ec6eceb307228bc628a4b186a3058051
Reviewed-on: https://gerrit.libreoffice.org/71230
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r-- | sc/source/core/data/document.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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(); |