Removed unnecessary int cast

This commit is contained in:
Daniel Brunner
2017-05-05 21:20:41 +02:00
parent 07f8f69cfd
commit 742900ecb4
3 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ void newMessage(Telegram::Message message)
qDebug() << "new message:" << message; qDebug() << "new message:" << message;
if (bot && message.type == Telegram::Message::TextType) { if (bot && message.type == Telegram::Message::TextType) {
bot->sendMessage((qint32)message.from.id, message.string); bot->sendMessage(message.from.id, message.string);
} }
} }

View File

@ -17,7 +17,7 @@ public:
Private, Group, Channel Private, Group, Channel
}; };
quint32 id; qint32 id;
ChatType type; ChatType type;
QString title; QString title;
QString username; QString username;

View File

@ -13,7 +13,7 @@ public:
User() : id(0), firstname(QString()), lastname(QString()), username(QString()) {} User() : id(0), firstname(QString()), lastname(QString()), username(QString()) {}
User(QJsonObject user); User(QJsonObject user);
quint32 id; qint32 id;
QString firstname; QString firstname;
QString lastname; QString lastname;
QString username; QString username;