Commit 66244b12 authored by Laurent Montel's avatar Laurent Montel 😁

Consti'fy

parent 07cb3111
......@@ -289,7 +289,7 @@ QString AccountInfo::cleanUsername(QString username)
return username;
}
bool AccountInfo::validateUsername(QString username) const
bool AccountInfo::validateUsername(const QString &username) const
{
if (username.isEmpty()) {
return false;
......
......@@ -61,7 +61,7 @@ class AccountInfo : public QWidget
QString cleanName(QString name) const;
bool validateName(const QString &name) const;
QString cleanUsername(QString username);
bool validateUsername(QString username) const;
bool validateUsername(const QString &username) const;
QString cleanEmail(QString email);
bool validateEmail(const QString &email) const;
QStringList imageFormats() const;
......
Markdown is supported
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