Permalink
Browse files

Refactor of UPnP Serializer so Q_DECLARE_METATYPE() comes before qReg…

…isterMetaType<> (so we can compile under Qt5).
  • Loading branch information...
daniel-kristjansson committed Feb 26, 2013
1 parent ee6c472 commit 4a498aafe714977b6b560711b126e4f328edefa3
Showing with 7 additions and 4 deletions.
  1. +7 −4 mythtv/libs/libmythupnp/serializers/serializer.h
@@ -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.