sw/source/core/unocore/unochart.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 65e5486f6db884a5ef6e30abc41a6dc06d1cfb1a
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Dec 14 11:10:33 2022 +0000
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Wed Dec 14 15:41:31 2022 +0000

    Resolves: tdf#151753 'revert coverity#1212509 Logically dead code'
    
    revert 0d6f45377592a62ff4ee510d5fbd3bdd9e20160a:
    
        coverity#1212509 Logically dead code
    
    Change-Id: I8eb7355a94ce2c93faa18c77be63de41bccd3a99
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144159
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    (cherry picked from commit 6880d32d851783a56c977872df5fbf11b507876a)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144129
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/sw/source/core/unocore/unochart.cxx 
b/sw/source/core/unocore/unochart.cxx
index e1b8e14e33f5..c8c282c1d50d 100644
--- a/sw/source/core/unocore/unochart.cxx
+++ b/sw/source/core/unocore/unochart.cxx
@@ -753,9 +753,9 @@ uno::Reference< chart2::data::XDataSource > 
SwChartDataProvider::Impl_createData
     {
         sal_Int32 nFirstSeqLen = 0;
         sal_Int32 nFirstSeqLabelIdx = -1;
-        bool bFirstFound = false;
         for (oi = 0; oi < oiEnd; ++oi)
         {
+            bool bFirstFound = false;
             // row/col used at all?
             if (aDataStartIdx[oi] != -1 &&
                 (!bFirstIsLabel || aLabelIdx[oi] != -1))

Reply via email to