summaryrefslogtreecommitdiffstats
path: root/src/multimedia/audio/qaudioformat.cpp
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2014-05-26 16:20:49 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-30 14:47:54 +0200
commitefa4628e7489677166aadde5f94376d5e41146f9 (patch)
treeacb09d6fec04c3fcdf3908bda4ca7fed40437425 /src/multimedia/audio/qaudioformat.cpp
parent5a0e49369da7ac04c9bd9eb089a4b001f6a13278 (diff)
Use Q_CONSTRUCTOR_FUNCTION macro to register multimedia meta types.
Task-number: QTBUG-39131 Change-Id: I2493c9e3e6f0065d0441a74ff240d7d91fbe059c Reviewed-by: Christian Stromme <christian.stromme@digia.com>
Diffstat (limited to 'src/multimedia/audio/qaudioformat.cpp')
-rw-r--r--src/multimedia/audio/qaudioformat.cpp16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/multimedia/audio/qaudioformat.cpp b/src/multimedia/audio/qaudioformat.cpp
index b83256a10..6992bf992 100644
--- a/src/multimedia/audio/qaudioformat.cpp
+++ b/src/multimedia/audio/qaudioformat.cpp
@@ -44,20 +44,14 @@
QT_BEGIN_NAMESPACE
-namespace
+static void qRegisterAudioFormatMetaTypes()
{
- class QAudioFormatPrivateRegisterMetaTypes
- {
- public:
- QAudioFormatPrivateRegisterMetaTypes()
- {
- qRegisterMetaType<QAudioFormat>();
- qRegisterMetaType<QAudioFormat::SampleType>();
- qRegisterMetaType<QAudioFormat::Endian>();
- }
- } _registerMetaTypes;
+ qRegisterMetaType<QAudioFormat>();
+ qRegisterMetaType<QAudioFormat::SampleType>();
+ qRegisterMetaType<QAudioFormat::Endian>();
}
+Q_CONSTRUCTOR_FUNCTION(qRegisterAudioFormatMetaTypes)
class QAudioFormatPrivate : public QSharedData
{