From 0c4eb097eda5301b64f6a12d5219bc9d2c43ab1d Mon Sep 17 00:00:00 2001 From: Jake Petroules Date: Tue, 21 Jun 2016 12:59:41 -0700 Subject: Fix up QAppleRefCounted API - Add proper move semantics. - Use better variable names. Change-Id: I9d13e4474414593a451d3ccf34c034cb7ab7f60d Reviewed-by: Thiago Macieira --- src/corelib/kernel/qcore_mac_p.h | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) (limited to 'src/corelib/kernel/qcore_mac_p.h') diff --git a/src/corelib/kernel/qcore_mac_p.h b/src/corelib/kernel/qcore_mac_p.h index 881212a224..c2c5a519aa 100644 --- a/src/corelib/kernel/qcore_mac_p.h +++ b/src/corelib/kernel/qcore_mac_p.h @@ -80,23 +80,20 @@ template { public: using QAppleRefCounted::QAppleRefCounted; - template X as() const { return reinterpret_cast(this->type); } + template X as() const { return reinterpret_cast(this->value); } static QCFType constructFromGet(const T &t) { CFRetain(t); -- cgit v1.2.3