summaryrefslogtreecommitdiff
path: root/svx/source
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 /svx/source
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 'svx/source')
-rw-r--r--svx/source/form/fmview.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/form/fmview.cxx b/svx/source/form/fmview.cxx
index e693f8e122b1..ffb0e85e2c96 100644
--- a/svx/source/form/fmview.cxx
+++ b/svx/source/form/fmview.cxx
@@ -103,7 +103,7 @@ void FmFormView::Init()
SfxObjectShell* pObjShell = pFormModel->GetObjectShell();
if ( pObjShell && pObjShell->GetMedium() )
{
- if ( const SfxUnoAnyItem *pItem = pObjShell->GetMedium()->GetItemSet()->GetItemIfSet( SID_COMPONENTDATA, false ) )
+ if ( const SfxUnoAnyItem *pItem = pObjShell->GetMedium()->GetItemSet().GetItemIfSet( SID_COMPONENTDATA, false ) )
{
::comphelper::NamedValueCollection aComponentData( pItem->GetValue() );
bInitDesignMode = aComponentData.getOrDefault( "ApplyFormDesignMode", bInitDesignMode );