diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2025-02-17 11:06:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2025-02-26 16:56:56 +0100 |
commit | 09e2627a83d4769983c39fb2cb260e11fce354f3 (patch) | |
tree | c070d53da0092ef3826a2511d4ae875143576253 /starmath/source/mathml/import.cxx | |
parent | a4ab140ec079b86857145f5370d083b5e2c38440 (diff) |
use more concrete UNO types in some local vars
found by a little plugin I created.
Plugin parked into store/ folder because it needs hand-holding
when run.
Change-Id: I2b4da7378f0becbc5f020ac9e78cd765aa0119b4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181768
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'starmath/source/mathml/import.cxx')
-rw-r--r-- | starmath/source/mathml/import.cxx | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/starmath/source/mathml/import.cxx b/starmath/source/mathml/import.cxx index b7d6699d1294..59d58ea0035d 100644 --- a/starmath/source/mathml/import.cxx +++ b/starmath/source/mathml/import.cxx @@ -300,14 +300,6 @@ ErrCode SmMLImportWrapper::Import(std::u16string_view aSource) return ERRCODE_SFX_DOLOADFAILED; } - // Make a model component from our SmModel - uno::Reference<lang::XComponent> xModelComp = m_xModel; - if (!xModelComp.is()) - { - SAL_WARN("starmath", "Failed to make model while file input"); - return ERRCODE_SFX_DOLOADFAILED; - } - // Get model via uno SmModel* pModel = m_xModel.get(); if (pModel == nullptr) @@ -339,7 +331,8 @@ ErrCode SmMLImportWrapper::Import(std::u16string_view aSource) // Read data // read a component from text - ErrCode nError = ReadThroughComponentMS(aSource, xModelComp, xContext, xInfoSet); + ErrCode nError = ReadThroughComponentMS(aSource, uno::Reference<lang::XComponent>(m_xModel), + xContext, xInfoSet); // Declare any error if (nError != ERRCODE_NONE) |