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
|
||||
} // Utils
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
Q_DECLARE_TYPEINFO(Utils::Internal::MimeMagicRule, Q_MOVABLE_TYPE);
|
||||
QT_END_NAMESPACE
|
||||
|
||||
#endif // MIMEMAGICRULE_H
|
||||
|
||||
@@ -61,17 +61,17 @@ public:
|
||||
MimeType();
|
||||
MimeType(const MimeType &other);
|
||||
MimeType &operator=(const MimeType &other);
|
||||
#ifdef Q_COMPILER_RVALUE_REFS
|
||||
MimeType &operator=(MimeType &&other)
|
||||
{
|
||||
qSwap(d, other.d);
|
||||
return *this;
|
||||
}
|
||||
#endif
|
||||
void swap(MimeType &other)
|
||||
{
|
||||
qSwap(d, other.d);
|
||||
}
|
||||
//#ifdef Q_COMPILER_RVALUE_REFS
|
||||
// MimeType &operator=(MimeType &&other)
|
||||
// {
|
||||
// qSwap(d, other.d);
|
||||
// return *this;
|
||||
// }
|
||||
//#endif
|
||||
// void swap(MimeType &other)
|
||||
// {
|
||||
// qSwap(d, other.d);
|
||||
// }
|
||||
explicit MimeType(const Internal::MimeTypePrivate &dd);
|
||||
~MimeType();
|
||||
|
||||
@@ -118,7 +118,7 @@ protected:
|
||||
|
||||
} // Utils
|
||||
|
||||
Q_DECLARE_SHARED(Utils::MimeType)
|
||||
//Q_DECLARE_SHARED(Utils::MimeType)
|
||||
|
||||
#ifndef QT_NO_DEBUG_STREAM
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
Reference in New Issue
Block a user