Fix unused variable warnings

This commit is contained in:
Chocobo1 2016-12-06 10:30:37 +08:00
parent b971eb52ee
commit ab187f06da
3 changed files with 10 additions and 3 deletions

View file

@ -53,7 +53,9 @@
namespace
{
const short DEFAULT_PORT = 25;
#ifndef QT_NO_OPENSSL
const short DEFAULT_PORT_SSL = 465;
#endif
QByteArray hmacMD5(QByteArray key, const QByteArray &msg)
{
@ -98,12 +100,12 @@ Smtp::Smtp(QObject *parent)
, m_authType(AuthPlain)
{
static bool needToRegisterMetaType = true;
if (needToRegisterMetaType) {
qRegisterMetaType<QAbstractSocket::SocketError>();
needToRegisterMetaType = false;
}
#ifndef QT_NO_OPENSSL
m_socket = new QSslSocket(this);
#else