[Libreoffice-commits] core.git: sw/inc sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Aug 14 09:48:04 UTC 2018


 sw/inc/unochart.hxx                 |    2 +-
 sw/source/core/unocore/unochart.cxx |    3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

New commits:
commit ed77565f1487ed93e2557b562c10e0f4e8673c6a
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Mon Aug 13 13:40:45 2018 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Tue Aug 14 11:47:40 2018 +0200

    loplugin:returnconstant in SwChartDataProvider
    
    Change-Id: Ia9dc1f9c5a02162359c1fe6e65f21ae5dede7702
    Reviewed-on: https://gerrit.libreoffice.org/58965
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sw/inc/unochart.hxx b/sw/inc/unochart.hxx
index cbbe98b235cb..e3e413420217 100644
--- a/sw/inc/unochart.hxx
+++ b/sw/inc/unochart.hxx
@@ -176,7 +176,7 @@ public:
 
     // will send modified events for all data-sequences of the table
     void        InvalidateTable( const SwTable *pTable );
-    bool        DeleteBox( const SwTable *pTable, const SwTableBox &rBox );
+    void        DeleteBox( const SwTable *pTable, const SwTableBox &rBox );
     void        DisposeAllDataSequences( const SwTable *pTable );
 
     // functionality needed to get notified about new added rows/cols
diff --git a/sw/source/core/unocore/unochart.cxx b/sw/source/core/unocore/unochart.cxx
index 614e675d432c..6c64ef2441ae 100644
--- a/sw/source/core/unocore/unochart.cxx
+++ b/sw/source/core/unocore/unochart.cxx
@@ -1488,7 +1488,7 @@ void SwChartDataProvider::InvalidateTable( const SwTable *pTable )
     }
 }
 
-bool SwChartDataProvider::DeleteBox( const SwTable *pTable, const SwTableBox &rBox )
+void SwChartDataProvider::DeleteBox( const SwTable *pTable, const SwTableBox &rBox )
 {
     OSL_ENSURE( pTable, "table pointer is NULL" );
     if (pTable)
@@ -1541,7 +1541,6 @@ bool SwChartDataProvider::DeleteBox( const SwTable *pTable, const SwTableBox &rB
             }
         }
     }
-    return false;
 }
 
 void SwChartDataProvider::DisposeAllDataSequences( const SwTable *pTable )


More information about the Libreoffice-commits mailing list