diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-06 23:31:55 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-04-07 13:52:51 +0200 |
commit | 3feb65096a5dbb2b9713293a997754f0257223b5 (patch) | |
tree | ab0f2bb30111a2f5133999328818d32574300839 /chart2/source | |
parent | 55783b8006a509dbdfe29a1bd5d86f26204b6a42 (diff) |
tdf#120703 PVS: Silence V522 warnings
V522 There might be dereferencing of a potential null pointer.
Change-Id: I680f1628133216de6336ac5ffa846447ffd55a41
Reviewed-on: https://gerrit.libreoffice.org/70352
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/controller/dialogs/DialogModel.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chart2/source/controller/dialogs/DialogModel.cxx b/chart2/source/controller/dialogs/DialogModel.cxx index a648aff121ca..11a616a34f8e 100644 --- a/chart2/source/controller/dialogs/DialogModel.cxx +++ b/chart2/source/controller/dialogs/DialogModel.cxx @@ -854,6 +854,7 @@ ChartModel& DialogModel::getModel() const { uno::Reference< frame::XModel > xModel = getChartModel(); ChartModel* pModel = dynamic_cast<ChartModel*>(xModel.get()); + assert(pModel); return *pModel; } |