1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Remove redundant QString ctor

Thanks to @Papierkorb
This commit is contained in:
tux3 2015-04-27 03:16:52 +02:00
parent 92f14cc6eb
commit 25329d3a57
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -563,15 +563,15 @@ void Core::requestFriendship(const QString& friendAddress, const QString& messag
if (message.isEmpty())
{
emit failedToAddFriend(userId, QString(tr("You need to write a message with your request")));
emit failedToAddFriend(userId, tr("You need to write a message with your request"));
}
else if (message.size() > TOX_MAX_FRIEND_REQUEST_LENGTH)
{
emit failedToAddFriend(userId, QString(tr("Your message is too long!")));
emit failedToAddFriend(userId, tr("Your message is too long!"));
}
else if (hasFriendWithAddress(friendAddress))
{
emit failedToAddFriend(userId, QString(tr("Friend is already added")));
emit failedToAddFriend(userId, tr("Friend is already added"));
}
else
{