Browse Source

Avoid type specifier mismatch

Qt5 uses `int` and Qt6 uses `qsizetype`, so use the stream version of
`qDebug()` to avoid specifying types.
adaptive-webui-19844
Chocobo1 3 years ago
parent
commit
e45e29b431
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 3
      src/base/bittorrent/bencoderesumedatastorage.cpp
  2. 2
      src/base/bittorrent/session.cpp
  3. 2
      src/gui/properties/propertieswidget.cpp

3
src/base/bittorrent/bencoderesumedatastorage.cpp

@ -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);

2
src/base/bittorrent/session.cpp

@ -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);

2
src/gui/properties/propertieswidget.cpp

@ -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…
Cancel
Save