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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sun Nov 11 10:17:16 UTC 2018


 chart2/source/view/charttypes/VSeriesPlotter.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 8a5a56ebfef298241daf598d7c417aef466e3ec7
Author:     Zdibák Zoltán <zdibakzoltan at gmail.com>
AuthorDate: Sat Nov 10 22:33:21 2018 +0100
Commit:     Markus Mohrhard <markus.mohrhard at googlemail.com>
CommitDate: Sun Nov 11 11:16:55 2018 +0100

    cppCheck redundantAssignment variable bUseCustomLabel
    
    Change-Id: Ic900d5116fd1cf5a90526078c6e4802f09589aa7
    Reviewed-on: https://gerrit.libreoffice.org/63253
    Tested-by: Jenkins
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/chart2/source/view/charttypes/VSeriesPlotter.cxx b/chart2/source/view/charttypes/VSeriesPlotter.cxx
index ed5db9e6555d..b61a195bec97 100644
--- a/chart2/source/view/charttypes/VSeriesPlotter.cxx
+++ b/chart2/source/view/charttypes/VSeriesPlotter.cxx
@@ -510,10 +510,9 @@ uno::Reference< drawing::XShape > VSeriesPlotter::createDataLabel( const uno::Re
         sal_Int32 nLineCountForSymbolsize = 0;
         sal_uInt32 nTextListLength = 3;
         sal_uInt32 nCustomLabelsCount = aCustomLabels.getLength();
-        bool bUseCustomLabel = false;
         Sequence< OUString > aTextList( nTextListLength );
 
-        bUseCustomLabel = nCustomLabelsCount > 0;
+        bool bUseCustomLabel = nCustomLabelsCount > 0;
         if( bUseCustomLabel )
         {
             nTextListLength = ( nCustomLabelsCount > 3 ) ? nCustomLabelsCount : 3;


More information about the Libreoffice-commits mailing list