summaryrefslogtreecommitdiff
path: root/src/categories.cpp
diff options
context:
space:
mode:
authorTannin <sherb@gmx.net>2016-05-07 00:03:38 +0200
committerTannin <sherb@gmx.net>2016-05-07 00:03:38 +0200
commiteb97c46ed68a965d6ddf44fa6741fa929fd7d278 (patch)
treef2c92e8a688faacdbd6285ac5b5bf5f91a5ee3e9 /src/categories.cpp
parentd958e11e2b3cde75f481bdb734be10b4e1dda585 (diff)
cleanup
Diffstat (limited to 'src/categories.cpp')
-rw-r--r--src/categories.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/categories.cpp b/src/categories.cpp
index 7539d3fd..50ba5271 100644
--- a/src/categories.cpp
+++ b/src/categories.cpp
@@ -188,7 +188,7 @@ int CategoryFactory::addCategory(const QString &name, const std::vector<int> &ne
void CategoryFactory::addCategory(int id, const QString &name, const std::vector<int> &nexusIDs, int parentID)
{
- int index = m_Categories.size();
+ int index = static_cast<int>(m_Categories.size());
m_Categories.push_back(Category(index, id, name, nexusIDs, parentID));
for (int nexusID : nexusIDs) {
m_NexusMap[nexusID] = index;