diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-23 12:09:41 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-24 11:02:05 +0200 |
commit | 2346b09d19d98992e2dae826d7576cfe01538461 (patch) | |
tree | 04857a9ef28258c06c49cf42249d0d51a43ff245 /sc/inc/charthelper.hxx | |
parent | 87f6ca70a7c1ce94d6a5a32789ab430f6e604db6 (diff) |
ScCellFormat::GetString never called with a null ScDocument*
and similar, allowing a few redundant null checks to be dropped
Change-Id: Ice0d6d57df112a09d3e1af3d34126b3519529daf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103278
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/inc/charthelper.hxx')
-rw-r--r-- | sc/inc/charthelper.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/inc/charthelper.hxx b/sc/inc/charthelper.hxx index 9af57b1db22c..3b0c6857cdf7 100644 --- a/sc/inc/charthelper.hxx +++ b/sc/inc/charthelper.hxx @@ -36,7 +36,7 @@ typedef ::std::vector< ScRangeList > ScRangeListVector; class ScChartHelper { public: - static sal_uInt16 DoUpdateAllCharts( ScDocument* pDoc ); + static sal_uInt16 DoUpdateAllCharts( ScDocument& rDoc ); static void AdjustRangesOfChartsOnDestinationPage( const ScDocument& rSrcDoc, ScDocument& rDestDoc, const SCTAB nSrcTab, const SCTAB nDestTab ); static void UpdateChartsOnDestinationPage( ScDocument& rDestDoc, const SCTAB nDestTab ); static css::uno::Reference< css::chart2::XChartDocument > GetChartFromSdrObject( const SdrObject* pObject ); |