MD5Dialog: Call .empty() instead of testing against an empty string
This commit is contained in:
parent
d3283a881f
commit
568490fdfb
|
@ -109,7 +109,7 @@ void MD5Dialog::SetResult(int pid, const std::string& result)
|
||||||
m_status_labels[pid]->setText(
|
m_status_labels[pid]->setText(
|
||||||
tr("%1[%2]: %3").arg(player_name, QString::number(pid), QString::fromStdString(result)));
|
tr("%1[%2]: %3").arg(player_name, QString::number(pid), QString::fromStdString(result)));
|
||||||
|
|
||||||
if (m_last_result == "")
|
if (m_last_result.empty())
|
||||||
{
|
{
|
||||||
m_check_label->setText(tr("The hashes match!"));
|
m_check_label->setText(tr("The hashes match!"));
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue