work around MSVC level 4 warning

Change-Id: Ide3541a8a1a16a1f9b6b01f54d5b2f6ab178c3ac
Task-number: QTBUG-7233
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Joerg Bornemann 2015-02-17 11:56:46 +01:00 committed by hjk
parent 395f0181ee
commit 732c994876

View File

@ -865,6 +865,7 @@ Q_CORE_EXPORT void qFreeAligned(void *ptr);
/* make use of decltype or GCC's __typeof__ extension */ /* make use of decltype or GCC's __typeof__ extension */
template <typename T> template <typename T>
class QForeachContainer { class QForeachContainer {
QForeachContainer &operator=(const QForeachContainer &) Q_DECL_EQ_DELETE;
public: public:
inline QForeachContainer(const T& t) : c(t), i(c.begin()), e(c.end()), control(1) { } inline QForeachContainer(const T& t) : c(t), i(c.begin()), e(c.end()), control(1) { }
const T c; const T c;