Cppcheck: Fixed most issued in rtgui/*

This commit is contained in:
heckflosse
2016-10-04 23:28:19 +02:00
parent 01048ee513
commit 566d4c9822
34 changed files with 247 additions and 261 deletions

View File

@@ -559,7 +559,6 @@ void ThumbBrowserBase::arrangeFiles ()
int ct = 0;
int currx = 0;
int curry = 0;
while (ct < N) {
// find widest item in the column
@@ -571,7 +570,7 @@ void ThumbBrowserBase::arrangeFiles ()
}
// arrange items in the column
curry = 0;
int curry = 0;
for (int i = 0; ct < N && i < numOfRows; i++, ct++) {
while (ct < N && fd[ct]->filtered) {
@@ -641,12 +640,11 @@ void ThumbBrowserBase::arrangeFiles ()
// arrange files
int ct = 0;
int currx = 0;
int curry = 0;
while (ct < N) {
// arrange items in the row
currx = 0;
int currx = 0;
for (int i = 0; ct < N && i < numOfCols; i++, ct++) {
while (ct < N && fd[ct]->filtered) {