diff options
author | mread <qt-info@nokia.com> | 2011-07-05 10:21:39 (GMT) |
---|---|---|
committer | mread <qt-info@nokia.com> | 2011-07-05 10:21:39 (GMT) |
commit | 756d289e08e75142e92e6e4472de8ad52cdcdc9a (patch) | |
tree | 920629f8422d8b4e0e3eaa8d8a31299a0868b59a /src/plugins/bearer/symbian | |
parent | 799ee8f8ad18bffe9b689f3e17d0049f14794d62 (diff) | |
download | Qt-756d289e08e75142e92e6e4472de8ad52cdcdc9a.zip Qt-756d289e08e75142e92e6e4472de8ad52cdcdc9a.tar.gz Qt-756d289e08e75142e92e6e4472de8ad52cdcdc9a.tar.bz2 |
Fixing WINSCW compile error
Refactoring the body of a large TRAP into a separate function. This was
not compiling on WINSCW, perhaps due to the use of #ifdef within the
TRAP macro expansion. It does compile now.
Reviewed-by: Sami Merila
Diffstat (limited to 'src/plugins/bearer/symbian')
-rw-r--r-- | src/plugins/bearer/symbian/symbianengine.cpp | 21 | ||||
-rw-r--r-- | src/plugins/bearer/symbian/symbianengine.h | 2 |
2 files changed, 14 insertions, 9 deletions
diff --git a/src/plugins/bearer/symbian/symbianengine.cpp b/src/plugins/bearer/symbian/symbianengine.cpp index 1902292..fc2791a 100644 --- a/src/plugins/bearer/symbian/symbianengine.cpp +++ b/src/plugins/bearer/symbian/symbianengine.cpp @@ -104,15 +104,7 @@ void SymbianEngine::initialize() return; } - TRAP(error, { - iConnectionMonitor.ConnectL(); - CleanupClosePushL(iConnectionMonitor); -#ifdef SNAP_FUNCTIONALITY_AVAILABLE - User::LeaveIfError(iConnectionMonitor.SetUintAttribute(EBearerIdAll, 0, KBearerGroupThreshold, 1)); -#endif - iConnectionMonitor.NotifyEventL(*this); - CleanupStack::Pop(); - }); + TRAP(error, StartConnectionMonitorNotifyL()); if (error != KErrNone) { iInitOk = false; return; @@ -148,6 +140,17 @@ void SymbianEngine::initialize() startCommsDatabaseNotifications(); } +void SymbianEngine::StartConnectionMonitorNotifyL() +{ + iConnectionMonitor.ConnectL(); + CleanupClosePushL(iConnectionMonitor); +#ifdef SNAP_FUNCTIONALITY_AVAILABLE + User::LeaveIfError(iConnectionMonitor.SetUintAttribute(EBearerIdAll, 0, KBearerGroupThreshold, 1)); +#endif + iConnectionMonitor.NotifyEventL(*this); + CleanupStack::Pop(); +} + SymbianEngine::~SymbianEngine() { Cancel(); diff --git a/src/plugins/bearer/symbian/symbianengine.h b/src/plugins/bearer/symbian/symbianengine.h index b2cf0b3..a205c97 100644 --- a/src/plugins/bearer/symbian/symbianengine.h +++ b/src/plugins/bearer/symbian/symbianengine.h @@ -184,6 +184,8 @@ private: void startMonitoringIAPData(TUint32 aIapId); QNetworkConfigurationPrivatePointer dataByConnectionId(TUint aConnectionId); + void StartConnectionMonitorNotifyL(); + protected: // From CActive void RunL(); |