Minor improvement of previous commit

Change-Id: I1ab0d8756be5f8bf60c6bac3e9217db71e8e05a3
This commit is contained in:
Stephan Bergmann
2016-10-21 15:30:55 +02:00
parent 834abca71b
commit c5feb9ad79

View File

@@ -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>();
}