From cc0636ea1eb34b654bd14ce840d1ffa5a07e44fe Mon Sep 17 00:00:00 2001 From: David Schulz Date: Fri, 7 Mar 2014 13:18:31 +0100 Subject: Remove level 4 compiler warnings from MSVC. Task-number: QTBUG-7233 Change-Id: I52067e3a22e98a62fd87415906e54a54ff2d6b49 Reviewed-by: Kurt Pattyn Reviewed-by: Oliver Wolff Reviewed-by: Joerg Bornemann Reviewed-by: Dave McClelland --- src/corelib/global/qglobal.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/corelib/global') diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 0e5c4965f9..9b5d78b6fe 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -881,8 +881,11 @@ struct QForeachContainerBase {}; template class QForeachContainer : public QForeachContainerBase { + QForeachContainer &operator=(const QForeachContainer &) Q_DECL_EQ_DELETE; public: inline QForeachContainer(const T& t): c(t), brk(0), i(c.begin()), e(c.end()){} + QForeachContainer(const QForeachContainer &other) + : c(other.c), brk(other.brk), i(other.i), e(other.e) {} const T c; mutable int brk; mutable typename T::const_iterator i, e; -- cgit v1.2.3