forked from qt-creator/qt-creator
MimeDatabase: Fix compilation with namespaced Qt
Change-Id: I977a115e75302a5341352b593bf3182c0b093031 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -99,6 +99,8 @@ private:
|
|||||||
} // Internal
|
} // Internal
|
||||||
} // Utils
|
} // Utils
|
||||||
|
|
||||||
|
QT_BEGIN_NAMESPACE
|
||||||
Q_DECLARE_TYPEINFO(Utils::Internal::MimeMagicRule, Q_MOVABLE_TYPE);
|
Q_DECLARE_TYPEINFO(Utils::Internal::MimeMagicRule, Q_MOVABLE_TYPE);
|
||||||
|
QT_END_NAMESPACE
|
||||||
|
|
||||||
#endif // MIMEMAGICRULE_H
|
#endif // MIMEMAGICRULE_H
|
||||||
|
|||||||
@@ -61,17 +61,17 @@ public:
|
|||||||
MimeType();
|
MimeType();
|
||||||
MimeType(const MimeType &other);
|
MimeType(const MimeType &other);
|
||||||
MimeType &operator=(const MimeType &other);
|
MimeType &operator=(const MimeType &other);
|
||||||
#ifdef Q_COMPILER_RVALUE_REFS
|
//#ifdef Q_COMPILER_RVALUE_REFS
|
||||||
MimeType &operator=(MimeType &&other)
|
// MimeType &operator=(MimeType &&other)
|
||||||
{
|
// {
|
||||||
qSwap(d, other.d);
|
// qSwap(d, other.d);
|
||||||
return *this;
|
// return *this;
|
||||||
}
|
// }
|
||||||
#endif
|
//#endif
|
||||||
void swap(MimeType &other)
|
// void swap(MimeType &other)
|
||||||
{
|
// {
|
||||||
qSwap(d, other.d);
|
// qSwap(d, other.d);
|
||||||
}
|
// }
|
||||||
explicit MimeType(const Internal::MimeTypePrivate &dd);
|
explicit MimeType(const Internal::MimeTypePrivate &dd);
|
||||||
~MimeType();
|
~MimeType();
|
||||||
|
|
||||||
@@ -118,7 +118,7 @@ protected:
|
|||||||
|
|
||||||
} // Utils
|
} // Utils
|
||||||
|
|
||||||
Q_DECLARE_SHARED(Utils::MimeType)
|
//Q_DECLARE_SHARED(Utils::MimeType)
|
||||||
|
|
||||||
#ifndef QT_NO_DEBUG_STREAM
|
#ifndef QT_NO_DEBUG_STREAM
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
|||||||
Reference in New Issue
Block a user