CoreWLan: Fix potential unhandled exception assert

-[QNSListener notificationHandler:] was declared as not taking any parameter,
but used as taking a single NSNotification. This would lead to an 'unrecognized
selector' exception raised by Cocoa.

Task-number: QTBUG-26844
Change-Id: I56d03a7738c2a1b9dcf3cdecc696b01e65d7b233
Reviewed-by: Liang Qi <liang.qi@digia.com>
This commit is contained in:
Gabriel de Dietrich 2013-11-25 13:41:49 +01:00 committed by The Qt Project
parent 939a001c3a
commit 08f3177fdf
2 changed files with 6 additions and 4 deletions

View File

@ -71,7 +71,7 @@ extern "C" { // Otherwise it won't find CWKeychain* symbols at link time
QCoreWlanEngine *engine;
NSLock *locker;
}
- (void)notificationHandler;//:(NSNotification *)notification;
- (void)notificationHandler:(NSNotification *)notification;
- (void)remove;
- (void)setEngine:(QCoreWlanEngine *)coreEngine;
- (QCoreWlanEngine *)engine;
@ -120,8 +120,9 @@ extern "C" { // Otherwise it won't find CWKeychain* symbols at link time
[locker unlock];
}
- (void)notificationHandler//:(NSNotification *)notification
- (void)notificationHandler:(NSNotification *)notification
{
Q_UNUSED(notification);
engine->requestUpdate();
}
@end

View File

@ -48,7 +48,7 @@
QCoreWlanEngine *engine;
NSLock *locker;
}
- (void)notificationHandler;//:(NSNotification *)notification;
- (void)notificationHandler:(NSNotification *)notification;
- (void)remove;
- (void)setEngine:(QCoreWlanEngine *)coreEngine;
- (QCoreWlanEngine *)engine;
@ -97,8 +97,9 @@
[locker unlock];
}
- (void)notificationHandler//:(NSNotification *)notification
- (void)notificationHandler:(NSNotification *)notification
{
Q_UNUSED(notification);
engine->requestUpdate();
}
@end