mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 02:42:55 +00:00
remove redundant QT_MOC guard in qvariant header
mayhaps the MOC tool was choking on it at some point Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
87c563c167
commit
848b0544b1
1 changed files with 0 additions and 2 deletions
|
@ -350,7 +350,6 @@ Q_CORE_EXPORT QDataStream& operator>> (QDataStream& s, QVariant::Type& p);
|
||||||
Q_CORE_EXPORT QDataStream& operator<< (QDataStream& s, const QVariant::Type p);
|
Q_CORE_EXPORT QDataStream& operator<< (QDataStream& s, const QVariant::Type p);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef QT_MOC
|
|
||||||
template<typename T> inline T qvariant_cast(const QVariant &v)
|
template<typename T> inline T qvariant_cast(const QVariant &v)
|
||||||
{
|
{
|
||||||
const int vid = qMetaTypeId<T>();
|
const int vid = qMetaTypeId<T>();
|
||||||
|
@ -370,7 +369,6 @@ template<> inline QVariant qvariant_cast<QVariant>(const QVariant &v)
|
||||||
return *reinterpret_cast<const QVariant *>(v.constData());
|
return *reinterpret_cast<const QVariant *>(v.constData());
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
#endif // QT_MOC
|
|
||||||
|
|
||||||
#ifndef QT_NO_DEBUG_STREAM
|
#ifndef QT_NO_DEBUG_STREAM
|
||||||
Q_CORE_EXPORT QDebug operator<<(QDebug, const QVariant &);
|
Q_CORE_EXPORT QDebug operator<<(QDebug, const QVariant &);
|
||||||
|
|
Loading…
Add table
Reference in a new issue