summaryrefslogtreecommitdiff
path: root/sc/qa/unit/helper
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2023-07-27 19:12:45 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2023-07-28 08:13:40 +0200
commitf5dd4faef6c6ee23bb33a0662087e1892db78b3d (patch)
tree32848118bd734bfd0d812abb159cf0c38aa953df /sc/qa/unit/helper
parent0c45d90cfb1cc60218fbce3743df442b1f1d3f70 (diff)
SfxMedium::GetItemSet never returns nullptr
Change-Id: Ibfc98a49022aa09ebf5315e5d3328308c1e51d66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154997 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sc/qa/unit/helper')
-rw-r--r--sc/qa/unit/helper/scfiltertestbase.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/qa/unit/helper/scfiltertestbase.cxx b/sc/qa/unit/helper/scfiltertestbase.cxx
index d68a9c3267c9..0e8f4525ef11 100644
--- a/sc/qa/unit/helper/scfiltertestbase.cxx
+++ b/sc/qa/unit/helper/scfiltertestbase.cxx
@@ -34,8 +34,7 @@ ScDocShellRef ScFilterTestBase::loadDoc(const OUString& rURL, const OUString& rF
SfxMedium* pSrcMed = new SfxMedium(rURL, StreamMode::STD_READ);
pSrcMed->SetFilter(pFilter);
pSrcMed->UseInteractionHandler(false);
- SfxItemSet* pSet = pSrcMed->GetItemSet();
- pSet->Put(
+ pSrcMed->GetItemSet().Put(
SfxUInt16Item(SID_MACROEXECMODE, css::document::MacroExecMode::ALWAYS_EXECUTE_NO_WARN));
SAL_INFO("sc.qa", "about to load " << rURL);
if (!xDocShRef->DoLoad(pSrcMed))