Diffusion Krita 0f87010adf82

Descend the array in the right way

Authored by jtamate on Oct 4 2018, 4:54 PM.

Description

Descend the array in the right way

Summary:
Detected by cppcheck as Opposite inner 'if' condition leads to a dead code block (outer condition is 'j>0' and inner condition is 'j==0').
The array is 0 based, therefore [0-4].

Test Plan: make test passes

Reviewers: Krita, dkazakov

Reviewed By: Krita, dkazakov

Subscribers: dkazakov

Tags: Krita

Differential Revision: https://phabricator.kde.org/D15905

Details

Committed
jtamateOct 4 2018, 4:54 PM
Reviewer
Krita
Differential Revision
D15905: Descend the array in the right way
Parents
R37:d66f43616ac7: Fix TestXmlWriter
Branches
Unknown
Tags
Unknown