fix(EventsDb): add static_cast instead of c cast

This commit is contained in:
Ronan Abhamon 2017-10-09 15:59:50 +02:00
parent 4ec5f857ed
commit 9831f4dcc8

View file

@ -255,7 +255,7 @@ EventsDb::EventsDb () : AbstractDb(*new EventsDbPrivate) {}
isNull = false;
try {
return message.get<T>((size_t)index);
return message.get<T>(static_cast<size_t>(index));
} catch (const exception &) {
isNull = true;
}