mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 04:54:18 +00:00
Avoid type specifier mismatch
Qt5 uses `int` and Qt6 uses `qsizetype`, so use the stream version of `qDebug()` to avoid specifying types.
This commit is contained in:
parent
ca28fc27dc
commit
e45e29b431
@ -35,6 +35,7 @@
|
|||||||
#include <libtorrent/write_resume_data.hpp>
|
#include <libtorrent/write_resume_data.hpp>
|
||||||
|
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
|
#include <QDebug>
|
||||||
#include <QRegularExpression>
|
#include <QRegularExpression>
|
||||||
#include <QThread>
|
#include <QThread>
|
||||||
|
|
||||||
@ -113,7 +114,7 @@ BitTorrent::BencodeResumeDataStorage::BencodeResumeDataStorage(const QString &pa
|
|||||||
|
|
||||||
loadQueue(m_resumeDataDir.absoluteFilePath(QLatin1String("queue")));
|
loadQueue(m_resumeDataDir.absoluteFilePath(QLatin1String("queue")));
|
||||||
|
|
||||||
qDebug("Registered torrents count: %d", m_registeredTorrents.size());
|
qDebug() << "Registered torrents count: " << m_registeredTorrents.size();
|
||||||
|
|
||||||
m_asyncWorker->moveToThread(m_ioThread);
|
m_asyncWorker->moveToThread(m_ioThread);
|
||||||
connect(m_ioThread, &QThread::finished, m_asyncWorker, &QObject::deleteLater);
|
connect(m_ioThread, &QThread::finished, m_asyncWorker, &QObject::deleteLater);
|
||||||
|
@ -2523,7 +2523,7 @@ QStringList Session::getListeningIPs() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
const QList<QNetworkAddressEntry> addresses = networkIFace.addressEntries();
|
const QList<QNetworkAddressEntry> addresses = networkIFace.addressEntries();
|
||||||
qDebug("This network interface has %d IP addresses", addresses.size());
|
qDebug() << "This network interface has " << addresses.size() << " IP addresses";
|
||||||
for (const QNetworkAddressEntry &entry : addresses)
|
for (const QNetworkAddressEntry &entry : addresses)
|
||||||
checkAndAddIP(entry.ip(), configuredAddr);
|
checkAndAddIP(entry.ip(), configuredAddr);
|
||||||
|
|
||||||
|
@ -412,7 +412,7 @@ void PropertiesWidget::saveSettings()
|
|||||||
sizes = hSplitter->sizes();
|
sizes = hSplitter->sizes();
|
||||||
else
|
else
|
||||||
sizes = m_slideSizes;
|
sizes = m_slideSizes;
|
||||||
qDebug("Sizes: %d", sizes.size());
|
|
||||||
if (sizes.size() == 2)
|
if (sizes.size() == 2)
|
||||||
pref->setPropSplitterSizes(QString::number(sizes.first()) + ',' + QString::number(sizes.last()));
|
pref->setPropSplitterSizes(QString::number(sizes.first()) + ',' + QString::number(sizes.last()));
|
||||||
pref->setPropFileListState(m_ui->filesList->header()->saveState());
|
pref->setPropFileListState(m_ui->filesList->header()->saveState());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user