diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-22 14:42:50 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-08-22 14:42:50 +0200 |
commit | e723ae9154f8a883ec563060b70e7ec04fc64fcf (patch) | |
tree | 6853ea643aea50c1024f2c511776b206d08d540d /framework/src/domain/perioddayeventmodel.cpp | |
parent | 547b77ce6e5197f5a4b80b0917cee962de0e2a9f (diff) | |
download | kube-e723ae9154f8a883ec563060b70e7ec04fc64fcf.tar.gz kube-e723ae9154f8a883ec563060b70e7ec04fc64fcf.zip |
Fixed comparison warning
Diffstat (limited to 'framework/src/domain/perioddayeventmodel.cpp')
-rw-r--r-- | framework/src/domain/perioddayeventmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/src/domain/perioddayeventmodel.cpp b/framework/src/domain/perioddayeventmodel.cpp index bdbacc2f..2583bee1 100644 --- a/framework/src/domain/perioddayeventmodel.cpp +++ b/framework/src/domain/perioddayeventmodel.cpp | |||
@@ -261,7 +261,7 @@ QVariant PeriodDayEventModel::data(const QModelIndex &id, int role) const | |||
261 | return {}; | 261 | return {}; |
262 | } | 262 | } |
263 | } else { | 263 | } else { |
264 | auto day = id.internalId(); | 264 | auto day = static_cast<int>(id.internalId()); |
265 | SinkTrace() << "Fetching data for event on day" << day << "with role" | 265 | SinkTrace() << "Fetching data for event on day" << day << "with role" |
266 | << QMetaEnum::fromType<Roles>().valueToKey(role); | 266 | << QMetaEnum::fromType<Roles>().valueToKey(role); |
267 | Q_ASSERT(0 <= day && day < partitionedEvents.size()); | 267 | Q_ASSERT(0 <= day && day < partitionedEvents.size()); |