usbengines/usbotgwatcher/src/cusbstatehostahost.cpp
branchRCL_3
changeset 7 ff9df6630274
parent 6 a15c582fbf97
--- a/usbengines/usbotgwatcher/src/cusbstatehostahost.cpp	Fri Mar 12 15:48:40 2010 +0200
+++ b/usbengines/usbotgwatcher/src/cusbstatehostahost.cpp	Mon Mar 15 12:44:42 2010 +0200
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
+ * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
  * All rights reserved.
  * This component and the accompanying materials are made available
  * under the terms of "Eclipse Public License v1.0"
@@ -17,6 +17,7 @@
 
 #include <e32base.h>
 #include <UsbWatcherInternalPSKeys.h>
+#include <e32property.h>
 
 #include "cusbstatehostahost.h"
 #include "cusbnotifmanager.h"
@@ -92,7 +93,7 @@
     // do general things 
     CUsbStateHostABase::JustAdvancedToThisStateL();
 
-    User::LeaveIfError(RProperty::Set(KPSUidUsbWatcher,
+    LEAVEIFERROR(RProperty::Set(KPSUidUsbWatcher,
             KUsbWatcherIsPeripheralConnected,
             KUsbWatcherPeripheralIsConnected));
 
@@ -106,7 +107,7 @@
     {
     LOG_FUNC
 
-    User::LeaveIfError(RProperty::Set(KPSUidUsbWatcher,
+    LEAVEIFERROR(RProperty::Set(KPSUidUsbWatcher,
             KUsbWatcherIsPeripheralConnected,
             KUsbWatcherPeripheralIsNotConnected));
 
@@ -131,5 +132,5 @@
 void CUsbStateHostAHost::BadHubPositionL()
     {
     LOG_FUNC
-    Panic( EBadHubPositionEventNotExpected);
+    PANIC( EBadHubPositionEventNotExpected);
     }