diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2021-08-18 21:45:38 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2021-08-19 08:29:57 +0200 |
commit | dda0caeb5d3eae473f85b0ea14bd51be7bb806a2 (patch) | |
tree | 9213cfc1b4bbb01872429b221ae4af15d2e8fea4 /starmath | |
parent | da006fbe2d4c5891933390d72f6e6026b28d39fc (diff) |
cid#1490354/1490355: Logically dead code
Change-Id: I2f20f60d01e5b5969a51041726b13cb2e1a2d0af
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120682
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/mathml/import.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/mathml/import.cxx b/starmath/source/mathml/import.cxx index 329205319a75..e5060956b56f 100644 --- a/starmath/source/mathml/import.cxx +++ b/starmath/source/mathml/import.cxx @@ -111,7 +111,7 @@ ErrCode SmMLImportWrapper::Import(SfxMedium& rMedium) } // Get doc shell - m_pDocShell = pModel ? static_cast<SmDocShell*>(pModel->GetObjectShell()) : nullptr; + m_pDocShell = static_cast<SmDocShell*>(pModel->GetObjectShell()); if (m_pDocShell == nullptr) { SAL_WARN("starmath", "Failed to fetch smdoc shell while file input"); @@ -314,7 +314,7 @@ ErrCode SmMLImportWrapper::Import(std::u16string_view aSource) } // Get doc shell - m_pDocShell = pModel ? static_cast<SmDocShell*>(pModel->GetObjectShell()) : nullptr; + m_pDocShell = static_cast<SmDocShell*>(pModel->GetObjectShell()); if (m_pDocShell == nullptr) { SAL_WARN("starmath", "Failed to fetch smdoc shell while file input"); |