diff --git a/mythtv/libs/libmythupnp/servicehost.cpp b/mythtv/libs/libmythupnp/servicehost.cpp
index 024acb9..cb8013c 100644
a
|
b
|
QVariant MethodInfo::Invoke( Service *pService, const QStringMap &reqParams ) |
65 | 65 | |
66 | 66 | if (nRetIdx != 0) |
67 | 67 | { |
| 68 | #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) |
68 | 69 | param[ 0 ] = QMetaType::construct( nRetIdx ); |
| 70 | #else |
| 71 | param[ 0 ] = QMetaType::create( nRetIdx ); |
| 72 | #endif |
69 | 73 | types[ 0 ] = nRetIdx; |
70 | 74 | } |
71 | 75 | else |
… |
… |
QVariant MethodInfo::Invoke( Service *pService, const QStringMap &reqParams ) |
88 | 92 | |
89 | 93 | if (nId != 0) |
90 | 94 | { |
| 95 | #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) |
91 | 96 | pParam = QMetaType::construct( nId ); |
| 97 | #else |
| 98 | pParam = QMetaType::create( nId ); |
| 99 | #endif |
92 | 100 | } |
93 | 101 | else |
94 | 102 | { |
diff --git a/mythtv/libs/libmythupnp/xsd.cpp b/mythtv/libs/libmythupnp/xsd.cpp
index 9636121..d433316 100644
a
|
b
|
bool Xsd::GetXSD( HTTPRequest *pRequest, QString sTypeName ) |
94 | 94 | } |
95 | 95 | else |
96 | 96 | { |
| 97 | #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) |
97 | 98 | QObject *pClass = (QObject *)QMetaType::construct( id ); |
| 99 | #else |
| 100 | QObject *pClass = (QObject *)QMetaType::create( id ); |
| 101 | #endif |
98 | 102 | |
99 | 103 | if (pClass != NULL) |
100 | 104 | bHandled = RenderXSD( pRequest, pClass ); |