aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/help/macwebkithelpviewer.mm
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2015-03-26 12:28:50 +0100
committerEike Ziller <eike.ziller@theqtcompany.com>2015-03-31 13:27:33 +0000
commit7a59dbc9885ea2377858519c3761b21a11f4113e (patch)
tree6d72f7dcf5f4af1e7b09280cad7ffcb8ff93ddcb /src/plugins/help/macwebkithelpviewer.mm
parent5183081c3a8428df806d218b02edd09eee8550e1 (diff)
OS X: Create a help AutoreleasePool class
That wraps NSAutoreleasePool and releases it at destruction. Change-Id: Ie7049450da46458f02c02d38439e20e43609ca83 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
Diffstat (limited to 'src/plugins/help/macwebkithelpviewer.mm')
-rw-r--r--src/plugins/help/macwebkithelpviewer.mm22
1 files changed, 2 insertions, 20 deletions
diff --git a/src/plugins/help/macwebkithelpviewer.mm b/src/plugins/help/macwebkithelpviewer.mm
index 096d0c34129..b5476d32f73 100644
--- a/src/plugins/help/macwebkithelpviewer.mm
+++ b/src/plugins/help/macwebkithelpviewer.mm
@@ -34,6 +34,7 @@
#include "openpagesmanager.h"
#include <coreplugin/icore.h>
+#include <utils/autoreleasepool.h>
#include <utils/qtcassert.h>
#include <QApplication>
@@ -68,26 +69,7 @@
#import <WebKit/WebUIDelegate.h>
#import <WebKit/WebView.h>
-// #pragma mark -- AutoreleasePool
-
-class AutoreleasePool
-{
-public:
- AutoreleasePool();
- ~AutoreleasePool();
-private:
- NSAutoreleasePool *pool;
-};
-
-AutoreleasePool::AutoreleasePool()
-{
- pool = [[NSAutoreleasePool alloc] init];
-}
-
-AutoreleasePool::~AutoreleasePool()
-{
- [pool release];
-}
+using namespace Utils;
// #pragma mark -- mac helpers