Permalink
Browse files

Fixes #11243. Use QMetaMethod::create for Qt5.

Signed-off-by: Daniel Kristjansson <danielk@cuymedia.net>
  • Loading branch information...
1 parent d1443e7 commit 0b974b68c0b1fa45dbf3f050b611d12f3b675754 @garybuhrmaster garybuhrmaster committed with daniel-kristjansson Dec 20, 2012
Showing with 12 additions and 0 deletions.
  1. +8 −0 mythtv/libs/libmythupnp/servicehost.cpp
  2. +4 −0 mythtv/libs/libmythupnp/xsd.cpp
@@ -65,7 +65,11 @@ QVariant MethodInfo::Invoke( Service *pService, const QStringMap &reqParams )
if (nRetIdx != 0)
{
+#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
param[ 0 ] = QMetaType::construct( nRetIdx );
+#else
+ param[ 0 ] = QMetaType::create( nRetIdx );
+#endif
types[ 0 ] = nRetIdx;
}
else
@@ -88,7 +92,11 @@ QVariant MethodInfo::Invoke( Service *pService, const QStringMap &reqParams )
if (nId != 0)
{
+#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
pParam = QMetaType::construct( nId );
+#else
+ pParam = QMetaType::create( nId );
+#endif
}
else
{
@@ -94,7 +94,11 @@ bool Xsd::GetXSD( HTTPRequest *pRequest, QString sTypeName )
}
else
{
+#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
QObject *pClass = (QObject *)QMetaType::construct( id );
+#else
+ QObject *pClass = (QObject *)QMetaType::create( id );
+#endif
if (pClass != NULL)
bHandled = RenderXSD( pRequest, pClass );

0 comments on commit 0b974b6

Please sign in to comment.