Use reference whenever possible

This commit is contained in:
Chocobo1
2023-05-05 02:50:19 +08:00
parent 5b43782f58
commit 8c9b6e2f2d
12 changed files with 13 additions and 13 deletions

View File

@@ -162,7 +162,7 @@ void Smtp::sendMail(const QString &from, const QString &to, const QString &subje
// Connect to SMTP server
const QStringList serverEndpoint = pref->getMailNotificationSMTP().split(u':');
const QString serverAddress = serverEndpoint[0];
const QString &serverAddress = serverEndpoint[0];
const std::optional<int> serverPort = Utils::String::parseInt(serverEndpoint.value(1));
#ifndef QT_NO_OPENSSL