From 8865f9d7bc6b88e6cde2e2ec53e2f7c0f41561a7 Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 23 Sep 2015 21:47:56 +0200 Subject: added cmake build script and a few fixes for 64-bit compatibility --- src/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainwindow.cpp') 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 &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)) { -- cgit v1.3.1