Fix MSVC-warning about inconsistent DLL-linkage.
authorFriedemann Kleint <Friedemann.Kleint@digia.com>
Wed, 8 May 2013 08:29:17 +0000 (10:29 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 9 May 2013 17:27:46 +0000 (19:27 +0200)
Introduced by 9b5a55101d7c519446c1cf3706a235dea81ad4de .

Task-Number: QTBUG-28572
Change-Id: I5e7d012d22c701b2b15ab288d2c72f177caf904e
Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
src/qml/qml/qqmlmetatype_p.h

index 12901e8..f522812 100644 (file)
@@ -231,7 +231,7 @@ private:
     friend int registerSingletonType(const QQmlPrivate::RegisterSingletonType &);
     friend int registerInterface(const QQmlPrivate::RegisterInterface &);
     friend int registerCompositeType(const QQmlPrivate::RegisterCompositeType &);
-    friend void qmlClearTypeRegistrations();
+    friend Q_QML_EXPORT void qmlClearTypeRegistrations();
     QQmlType(int, const QQmlPrivate::RegisterInterface &);
     QQmlType(int, const QString &, const QQmlPrivate::RegisterSingletonType &);
     QQmlType(int, const QString &, const QQmlPrivate::RegisterType &);
@@ -260,7 +260,7 @@ private:
     //Used by register functions and creates the QQmlTypeModule for them
     friend void addTypeToData(QQmlType* type, QQmlMetaTypeData *data);
     friend struct QQmlMetaTypeData;
-    friend void qmlClearTypeRegistrations();
+    friend Q_QML_EXPORT void qmlClearTypeRegistrations();
 
     QQmlTypeModule();
     ~QQmlTypeModule();