Closed Chardrazle closed 10 years ago
Shouldn't it be:
void SmtpClient::setHost(const QString& host)
Only to maintain style.
I also notice what looks like a copy-paste job in the prototype for:
void setUser(const QString &host);
The cpp file has changed the parameter name to user, as expected.
Fixed.
void SmtpClient::setHost(QString &host)
should be:
void SmtpClient::setHost(QString const &host)
Yes, it's marked as deprecated, but if that's the case then the constructor ought to be RAII; not defaulted.