diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-10-21 15:30:55 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-10-21 15:31:05 +0200 |
commit | c5feb9ad79c9c830ca824e29277ff41c5cc24e7d (patch) | |
tree | 194e8400fb1e3ea037e5f521319b1d0ad51efb52 /chart2/source | |
parent | 834abca71b4899a3ef115df30f68ad2202019247 (diff) |
Minor improvement of previous commit
Change-Id: I1ab0d8756be5f8bf60c6bac3e9217db71e8e05a3
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/controller/main/ChartController.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx index a4a641704dfb..ce70a165c3af 100644 --- a/chart2/source/controller/main/ChartController.cxx +++ b/chart2/source/controller/main/ChartController.cxx @@ -278,7 +278,7 @@ css::uno::Reference<css::chart2::XChartType> getChartType( const css::uno::Reference<css::chart2::XChartDocument>& xChartDoc) { Reference <chart2::XDiagram > xDiagram = xChartDoc->getFirstDiagram(); - if (xDiagram == nullptr) { + if (!xDiagram.is()) { return css::uno::Reference<css::chart2::XChartType>(); } |