Commit 148596ca authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization

parent 8b2beb57
......@@ -174,7 +174,8 @@ static QByteArray cleanupListRespone(const QByteArray &response)
QByteArray ret = response.simplified(); // Workaround for Maillennium POP3/UNIBOX
// Get rid of the null terminating character, if it exists
if (ret.size() > 0 && ret.at(ret.size() - 1) == 0) {
int retSize = ret.size();
if (retSize > 0 && ret.at(retSize - 1) == 0) {
ret.chop(1);
}
return ret;
......
......@@ -169,7 +169,7 @@ void POP3Resource::walletOpenedForLoading(bool success)
mWallet = Q_NULLPTR;
if (!passwordLoaded) {
QString queryText = buildLabelForPasswordDialog(
const QString queryText = buildLabelForPasswordDialog(
i18n("You are asked here because the password could not be loaded from the wallet."));
showPasswordDialog(queryText);
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment