Minor improvement of previous commit
Change-Id: I1ab0d8756be5f8bf60c6bac3e9217db71e8e05a3
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user