summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2015-11-20 14:24:30 +0100
committerTimur Pocheptsov <timur.pocheptsov@theqtcompany.com>2016-01-05 08:46:51 +0000
commitaea5e3971986b4beba395985108fcad2c0c98c37 (patch)
treef00383de5c29c686150aad76ccf955e667d7c08b
parent9d3e7e9c2edb38a6bca9bb6c1cdef02c0a329ec4 (diff)
downloadqtconnectivity-aea5e3971986b4beba395985108fcad2c0c98c37.tar.gz
Remove yet another implementation of AutoreleasePool's RAII
Now we have this class in QtCore, no need in my "home-made" version anymore. Change-Id: Id26944dd6970cc2a8ac9d02675f8af9adecc3d44 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
-rw-r--r--src/bluetooth/osx/osxbtutility_p.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bluetooth/osx/osxbtutility_p.h b/src/bluetooth/osx/osxbtutility_p.h
index 3506b0d1..8816d6f3 100644
--- a/src/bluetooth/osx/osxbtutility_p.h
+++ b/src/bluetooth/osx/osxbtutility_p.h
@@ -94,8 +94,7 @@ public:
}
};
-typedef ObjCScopedPointer<NSAutoreleasePool> AutoreleasePool;
-#define QT_BT_MAC_AUTORELEASEPOOL const OSXBluetooth::AutoreleasePool pool([[NSAutoreleasePool alloc] init])
+#define QT_BT_MAC_AUTORELEASEPOOL const QMacAutoReleasePool pool;
template<class T>
class ObjCStrongReference {