usbengines/usbotgwatcher/src/cusbvbusobserver.cpp
branchRCL_3
changeset 7 ff9df6630274
parent 6 a15c582fbf97
--- a/usbengines/usbotgwatcher/src/cusbvbusobserver.cpp	Fri Mar 12 15:48:40 2010 +0200
+++ b/usbengines/usbotgwatcher/src/cusbvbusobserver.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"
@@ -41,7 +41,7 @@
     {
     LOG_FUNC
 
-    User::LeaveIfError(iVBus.Attach(KUidUsbManCategory,
+    LEAVEIFERROR(iVBus.Attach(KUidUsbManCategory,
             KUsbOtgVBusPoweredProperty));
 
     }
@@ -91,7 +91,7 @@
     if (KErrNone != err)
         {
         LOG("CanNotGetVBusProperty" )
-        Panic( ECanNotGetVBusProperty);
+        PANIC( ECanNotGetVBusProperty);
         }
 
     return (0 == val ? EVBusDown : EVBusUp);
@@ -109,7 +109,7 @@
     if (KErrNotFound != iObservers.Find(&aObserver))
         {
         LOG( "Observer already exists" );
-        Panic( EObserverAlreadyExists);
+        PANIC( EObserverAlreadyExists);
         return;
         }
 
@@ -134,7 +134,7 @@
     if (KErrNotFound == i)
         {
         LOG("Observer not found" );
-        Panic( ECanNotFindVBusObserver);
+        PANIC( ECanNotFindVBusObserver);
         return;
         }
 
@@ -204,10 +204,9 @@
         default:
             {
             LOG("WrongVBusState");
-            Panic( EWrongVBusState);
+            PANIC( EWrongVBusState);
             }
         }
-
     }
 
 // ---------------------------------------------------------------------------