[Libreoffice-commits] core.git: chart2/source

Stephan Bergmann sbergman at redhat.com
Fri Oct 21 13:31:47 UTC 2016


 chart2/source/controller/main/ChartController.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit c5feb9ad79c9c830ca824e29277ff41c5cc24e7d
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Oct 21 15:30:55 2016 +0200

    Minor improvement of previous commit
    
    Change-Id: I1ab0d8756be5f8bf60c6bac3e9217db71e8e05a3

diff --git a/chart2/source/controller/main/ChartController.cxx b/chart2/source/controller/main/ChartController.cxx
index a4a6417..ce70a16 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>();
     }
 


More information about the Libreoffice-commits mailing list