From: Marc Mutz Date: Thu, 1 Mar 2012 07:33:15 +0000 (+0100) Subject: QBoolBlocker: make constructor explicit and disable copying X-Git-Tag: qt-v5.0.0-alpha1~643 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4908cf2a556948599c40681208438e814ba7b83c;p=profile%2Fivi%2Fqtbase.git QBoolBlocker: make constructor explicit and disable copying Change-Id: If294eff3f84f837ed554c572527d46a89660de9c Reviewed-by: Thiago Macieira --- diff --git a/src/corelib/kernel/qobject_p.h b/src/corelib/kernel/qobject_p.h index fa1aee8..710aa63 100644 --- a/src/corelib/kernel/qobject_p.h +++ b/src/corelib/kernel/qobject_p.h @@ -284,8 +284,9 @@ private: class QBoolBlocker { + Q_DISABLE_COPY(QBoolBlocker) public: - inline QBoolBlocker(bool &b, bool value=true):block(b), reset(b){block = value;} + explicit inline QBoolBlocker(bool &b, bool value=true):block(b), reset(b){block = value;} inline ~QBoolBlocker(){block = reset; } private: bool █