Skip to content

Commit

Permalink
[Bugfix] Fix Qt 6.5.x invoke in macOS.
Browse files Browse the repository at this point in the history
Qt meta method invoke seems like using strict type checking on
macOS, so make it comply.

Signed-off-by: Divya Antony J R <[email protected]>
  • Loading branch information
antony-jr committed Oct 15, 2023
1 parent 8556eb6 commit 000921c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qarchivecompressor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void Compressor::setBlockSize(int size) {
void Compressor::addFiles(const QString& entry, QIODevice* io) {
getMethod(*m_Compressor, "addFiles(const QString&, QIODevice*)")
.invoke(m_Compressor.get(), Qt::QueuedConnection, Q_ARG(QString, entry),
Q_ARG(QObject*, io));
Q_ARG(QIODevice*, io));
}

void Compressor::addFiles(const QStringList& entries,
Expand Down
2 changes: 1 addition & 1 deletion tests/QArchiveMemoryExtractorTests.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void QArchiveMemoryExtractorTests::usingExtractFilters() {
auto data = output.at(0).value<QArchive::MemoryExtractorOutput*>();

/// Test3OUtputFile1 should not exists
QVERIFY(data->getFiles().empty());
QVERIFY(!data->getFiles().empty());
QVERIFY(
data->getFiles().at(0).fileInformation().value("FileName").toString() !=
QFileInfo(Test3OutputFile1).fileName());
Expand Down

0 comments on commit 000921c

Please sign in to comment.