From 4a82f78dea36c297b5a4a44853936cc733de8197 Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Tue, 28 Feb 2012 22:06:36 +0100 Subject: QPair: remove user-defined copy assignment operator The compiler-generated copy assignment operator is fine, and the user-defined one prevents the compiler from synthesising a move assignment operator. Change-Id: I044104a2fd4d7522a910d5c2a68d11dabeca99c4 Reviewed-by: Olivier Goffart --- src/corelib/tools/qpair.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/corelib/tools/qpair.h') diff --git a/src/corelib/tools/qpair.h b/src/corelib/tools/qpair.h index 501f2af3e6..064a75048c 100644 --- a/src/corelib/tools/qpair.h +++ b/src/corelib/tools/qpair.h @@ -57,9 +57,7 @@ struct QPair QPair() : first(T1()), second(T2()) {} QPair(const T1 &t1, const T2 &t2) : first(t1), second(t2) {} - - QPair &operator=(const QPair &other) - { first = other.first; second = other.second; return *this; } + // compiler-generated copy/move ctor/assignment operators are fine! T1 first; T2 second; -- cgit v1.2.3