mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Fix unused variable warnings
This commit is contained in:
parent
b971eb52ee
commit
ab187f06da
3 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue