GUI: Fix Signed vs. Unsigned GCC Compiler Warnings

This commit is contained in:
D G Turner 2024-03-30 17:17:04 +00:00
parent 3dcd3e6fa6
commit e52f32cdd2
2 changed files with 3 additions and 3 deletions

View File

@ -881,7 +881,7 @@ int GridWidget::getNewSel(int index) {
}
// Find the index-th item in the grid
for (int i = 0; i < _sortedEntryList.size(); i++) {
for (uint i = 0; i < _sortedEntryList.size(); i++) {
if (index == 0 && _sortedEntryList[i]->isHeader == 0) {
return _sortedEntryList[i]->entryID;
} else if (_sortedEntryList[i]->isHeader == 0) {

View File

@ -298,7 +298,7 @@ int GroupedListWidget::getNextPos(int oldSel) {
int pos = 0;
// Find the position of the new selection in the list.
for (int i = 0; i < _listIndex.size(); i++) {
for (uint i = 0; i < _listIndex.size(); i++) {
if (_listIndex[i] == oldSel) {
return pos;
} else if (_listIndex[i] > 0) {
@ -316,7 +316,7 @@ int GroupedListWidget::getNewSel(int index) {
}
// Find the index-th item in the list
for (int i = 0; i < _listIndex.size(); i++) {
for (uint i = 0; i < _listIndex.size(); i++) {
if (index == 0 && _listIndex[i] >= 0) {
return _listIndex[i];
} else if (_listIndex[i] >= 0) {