Commit aac85143 authored by Felix Paul Kühne's avatar Felix Paul Kühne

qt: drop legacy NSAutoreleasePool pattern

parent e8aaffa2
......@@ -41,8 +41,7 @@ SearchLineEdit::SearchLineEdit(QWidget *parent)
{
// Many Cocoa objects create temporary autorelease objects,
// so create a pool to catch them.
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
@autoreleasepool {
// Create the NSSearchField, set it on the QCocoaViewContainer.
NSSearchField *search = [[NSSearchField alloc] init];
setCocoaView(search);
......@@ -55,9 +54,7 @@ SearchLineEdit::SearchLineEdit(QWidget *parent)
// Release our reference, since our super class takes ownership and we
// don't need it anymore.
[search release];
// Clean up our pool as we no longer need it.
[pool release];
}
}
//![0]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment