diff options
author | David Schulz <david.schulz@digia.com> | 2014-03-07 13:18:31 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-15 10:46:17 +0100 |
commit | cc0636ea1eb34b654bd14ce840d1ffa5a07e44fe (patch) | |
tree | 2694b5a44aa0513dba9f0572c2576382841cc986 /src/corelib/global | |
parent | c6e271da6d1d972ad73a97871baafe57578a69a9 (diff) |
Remove level 4 compiler warnings from MSVC.
Task-number: QTBUG-7233
Change-Id: I52067e3a22e98a62fd87415906e54a54ff2d6b49
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Reviewed-by: Dave McClelland
Diffstat (limited to 'src/corelib/global')
-rw-r--r-- | src/corelib/global/qglobal.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <typename T> 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; |