summaryrefslogtreecommitdiffstats
path: root/tests/auto/unit/qwavedecoder/tst_qwavedecoder.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2012-08-01 16:19:36 +0200
committerQt by Nokia <qt-info@nokia.com>2012-08-06 04:02:20 +0200
commit3e7f0f673a205ce33f31e7ef25afb47a0d6edc93 (patch)
tree799fe0f9e08bb358d118e58078756b27acb76278 /tests/auto/unit/qwavedecoder/tst_qwavedecoder.cpp
parenteedfcdaccea09d129c974e7527f760af4d5bec5b (diff)
Compile in C++11 mode: the Q_DECLARE_METATYPE must be visible
The error was: tests/auto/integration/qdeclarativevideooutput/tst_qdeclarativevideooutput.cpp:113:62: required from here qmetatype.h:637:5: error: static assertion failed: Type is not registered, please use Q_DECLARE_METATYPE macro to make it know to Qt's meta-object system Change-Id: Id4e29803de646cbad0d401b1fe0e0b38e458d12f Reviewed-by: Michael Goddard <michael.goddard@nokia.com> Reviewed-by: Marc Mutz <marc.mutz@kdab.com> Reviewed-by: Jonas Rabbe <jonas.rabbe@gmail.com>
Diffstat (limited to 'tests/auto/unit/qwavedecoder/tst_qwavedecoder.cpp')
-rw-r--r--tests/auto/unit/qwavedecoder/tst_qwavedecoder.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/unit/qwavedecoder/tst_qwavedecoder.cpp b/tests/auto/unit/qwavedecoder/tst_qwavedecoder.cpp
index 1b7b3cd66..a03383484 100644
--- a/tests/auto/unit/qwavedecoder/tst_qwavedecoder.cpp
+++ b/tests/auto/unit/qwavedecoder/tst_qwavedecoder.cpp
@@ -80,6 +80,8 @@ private slots:
void readPerByte();
};
+Q_DECLARE_METATYPE(tst_QWaveDecoder::Corruption)
+
void tst_QWaveDecoder::init()
{
}
@@ -308,8 +310,6 @@ void tst_QWaveDecoder::readPerByte()
stream.close();
}
-Q_DECLARE_METATYPE(tst_QWaveDecoder::Corruption)
-
QTEST_MAIN(tst_QWaveDecoder)
#include "tst_qwavedecoder.moc"