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:
parent
939a001c3a
commit
08f3177fdf
@ -71,7 +71,7 @@ extern "C" { // Otherwise it won't find CWKeychain* symbols at link time
|
|||||||
QCoreWlanEngine *engine;
|
QCoreWlanEngine *engine;
|
||||||
NSLock *locker;
|
NSLock *locker;
|
||||||
}
|
}
|
||||||
- (void)notificationHandler;//:(NSNotification *)notification;
|
- (void)notificationHandler:(NSNotification *)notification;
|
||||||
- (void)remove;
|
- (void)remove;
|
||||||
- (void)setEngine:(QCoreWlanEngine *)coreEngine;
|
- (void)setEngine:(QCoreWlanEngine *)coreEngine;
|
||||||
- (QCoreWlanEngine *)engine;
|
- (QCoreWlanEngine *)engine;
|
||||||
@ -120,8 +120,9 @@ extern "C" { // Otherwise it won't find CWKeychain* symbols at link time
|
|||||||
[locker unlock];
|
[locker unlock];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)notificationHandler//:(NSNotification *)notification
|
- (void)notificationHandler:(NSNotification *)notification
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(notification);
|
||||||
engine->requestUpdate();
|
engine->requestUpdate();
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
@ -48,7 +48,7 @@
|
|||||||
QCoreWlanEngine *engine;
|
QCoreWlanEngine *engine;
|
||||||
NSLock *locker;
|
NSLock *locker;
|
||||||
}
|
}
|
||||||
- (void)notificationHandler;//:(NSNotification *)notification;
|
- (void)notificationHandler:(NSNotification *)notification;
|
||||||
- (void)remove;
|
- (void)remove;
|
||||||
- (void)setEngine:(QCoreWlanEngine *)coreEngine;
|
- (void)setEngine:(QCoreWlanEngine *)coreEngine;
|
||||||
- (QCoreWlanEngine *)engine;
|
- (QCoreWlanEngine *)engine;
|
||||||
@ -97,8 +97,9 @@
|
|||||||
[locker unlock];
|
[locker unlock];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)notificationHandler//:(NSNotification *)notification
|
- (void)notificationHandler:(NSNotification *)notification
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(notification);
|
||||||
engine->requestUpdate();
|
engine->requestUpdate();
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
Loading…
Reference in New Issue
Block a user