Skip to content

Commit

Permalink
Refactor of UPnP Serializer so Q_DECLARE_METATYPE() comes before qReg…
Browse files Browse the repository at this point in the history
…isterMetaType<> (so we can compile under Qt5).
  • Loading branch information
daniel-kristjansson committed Mar 1, 2013
1 parent ee6c472 commit 4a498aa
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions mythtv/libs/libmythupnp/serializers/serializer.h
Expand Up @@ -67,13 +67,16 @@ class UPNP_PUBLIC Serializer
virtual void AddHeaders ( QStringMap &headers );


Serializer() : m_hash( QCryptographicHash::Sha1 )
{
qRegisterMetaType< QList<QObject*> >("QList<QObject*>");
}
inline Serializer();
};

Q_DECLARE_METATYPE( QList<QObject*> )

inline Serializer::Serializer() :
m_hash(QCryptographicHash::Sha1)
{
qRegisterMetaType< QList<QObject*> >("QList<QObject*>");
}

#endif

0 comments on commit 4a498aa

Please sign in to comment.