summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorTannin <sherb@gmx.net>2015-09-23 21:47:56 +0200
committerTannin <sherb@gmx.net>2015-09-23 21:47:56 +0200
commit8865f9d7bc6b88e6cde2e2ec53e2f7c0f41561a7 (patch)
treecc17c65e380796a59860fd52d0b7297fd56fd23e /src/mainwindow.cpp
parentae82ab7dca062ab65983e01c6ea49843563ae898 (diff)
added cmake build script and a few fixes for 64-bit compatibility
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)) {