mirror of
https://github.com/citra-mirror/citra.git
synced 2024-09-03 18:17:24 +02:00
Merge pull request #4836 from wwylele/chatroom-sign
citra_qt: silent sign comparison warning
This commit is contained in:
commit
1d6c6a37a1
@ -148,7 +148,7 @@ void CheatDialog::OnRowSelected(int row, int column) {
|
|||||||
ui->tableCheats->setCurrentCell(last_row, last_col);
|
ui->tableCheats->setCurrentCell(last_row, last_col);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (row < cheats.size()) {
|
if (static_cast<std::size_t>(row) < cheats.size()) {
|
||||||
if (newly_created) {
|
if (newly_created) {
|
||||||
// Remove the newly created dummy item
|
// Remove the newly created dummy item
|
||||||
newly_created = false;
|
newly_created = false;
|
||||||
|
@ -406,8 +406,9 @@ void ChatRoom::SetPlayerList(const Network::RoomMember::MemberList& member_list)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ChatRoom::OnChatTextChanged() {
|
void ChatRoom::OnChatTextChanged() {
|
||||||
if (ui->chat_message->text().length() > Network::MaxMessageSize)
|
if (ui->chat_message->text().length() > static_cast<int>(Network::MaxMessageSize))
|
||||||
ui->chat_message->setText(ui->chat_message->text().left(Network::MaxMessageSize));
|
ui->chat_message->setText(
|
||||||
|
ui->chat_message->text().left(static_cast<int>(Network::MaxMessageSize)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChatRoom::PopupContextMenu(const QPoint& menu_location) {
|
void ChatRoom::PopupContextMenu(const QPoint& menu_location) {
|
||||||
|
Loading…
Reference in New Issue
Block a user