summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 41ca1589..26ff4b98 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2091,7 +2091,7 @@ void MainWindow::addContentFilters()
void MainWindow::addCategoryFilters(QTreeWidgetItem *root, const std::set<int> &categoriesUsed, int targetID)
{
- for (unsigned i = 1; i < m_CategoryFactory.numCategories(); ++i) {
+ for (size_t i = 1; i < m_CategoryFactory.numCategories(); ++i) {
if ((m_CategoryFactory.getParentID(i) == targetID)) {
int categoryID = m_CategoryFactory.getCategoryID(i);
if (categoriesUsed.find(categoryID) != categoriesUsed.end()) {
@@ -2626,7 +2626,7 @@ bool MainWindow::populateMenuCategories(QMenu *menu, int targetID)
bool childEnabled = false;
- for (unsigned i = 1; i < m_CategoryFactory.numCategories(); ++i) {
+ for (size_t i = 1; i < m_CategoryFactory.numCategories(); ++i) {
if (m_CategoryFactory.getParentID(i) == targetID) {
QMenu *targetMenu = menu;
if (m_CategoryFactory.hasChildren(i)) {