Change Message::Flags/Type cast to Int, not UInt
authorShane Synan <digitalcircuit36939@gmail.com>
Tue, 8 May 2018 23:24:38 +0000 (18:24 -0500)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 23 May 2018 22:33:28 +0000 (00:33 +0200)
commitd09f943e9a6cb563b479bef5a4e909fbae6b768f
treeaab7ead4b7072228e7ae1e0d7db3b89b800da805
parentc0aba6b60277e5329f40513c66725dd0c52ee1b4
Change Message::Flags/Type cast to Int, not UInt

Use toInt() for casting `Message::Flags` and `Message::Type`, instead
of toUint().

MSVC has trouble with uint-based enums, so Quassel switched to int
enums.  However, not all of the enum casts were converted, resulting
in needless unsigned-to-signed casting.

Thanks to @justJanne for reporting this.
src/core/postgresqlstorage.cpp
src/core/sqlitestorage.cpp
src/qtui/chatlinemodelitem.cpp