From f492e59888774fe855b1e0cc13f3332f3d83cbab Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Fri, 3 May 2024 02:23:23 +0300 Subject: [PATCH] remove redundant metatype registrations Signed-off-by: Ivailo Monev --- tests/auto/qmainwindow/tst_qmainwindow.cpp | 1 - tests/auto/qprocess/tst_qprocess.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/tests/auto/qmainwindow/tst_qmainwindow.cpp b/tests/auto/qmainwindow/tst_qmainwindow.cpp index ce6ae1c88..a481690b2 100644 --- a/tests/auto/qmainwindow/tst_qmainwindow.cpp +++ b/tests/auto/qmainwindow/tst_qmainwindow.cpp @@ -173,7 +173,6 @@ void tst_QMainWindow::getSetCheck() tst_QMainWindow::tst_QMainWindow() { - qRegisterMetaType("QSize"); qRegisterMetaType("Qt::ToolButtonStyle"); } diff --git a/tests/auto/qprocess/tst_qprocess.cpp b/tests/auto/qprocess/tst_qprocess.cpp index 8386d65e4..1b80afc83 100644 --- a/tests/auto/qprocess/tst_qprocess.cpp +++ b/tests/auto/qprocess/tst_qprocess.cpp @@ -1192,7 +1192,6 @@ void tst_QProcess::waitForBytesWrittenInABytesWrittenSlot() process->start(binary); QVERIFY2(process->waitForStarted(5000), msgStartProcessFailed(binary, process->errorString()).constData()); - qRegisterMetaType("qint64"); QSignalSpy spy(process, SIGNAL(bytesWritten(qint64))); process->write("f"); QTestEventLoop::instance().enterLoop(30);