uifw/AvKon/src/akninfrm.cpp
branchRCL_3
changeset 72 a5e7a4f63858
parent 56 d48ab3b357f1
--- a/uifw/AvKon/src/akninfrm.cpp	Wed Sep 15 12:29:17 2010 +0300
+++ b/uifw/AvKon/src/akninfrm.cpp	Wed Oct 13 14:50:15 2010 +0300
@@ -353,18 +353,11 @@
         // we need to provide own context if one does not exist
         // because old style drawing did kind of work even
         // without calling SetInputContext( ... )
-        TRAP_IGNORE
-            ( 
-            iInputContext = CAknsFrameBackgroundControlContext::NewL(
-                    KAknsIIDQsnFrInput, TRect(0,0,0,0), TRect(0,0,0,0), EFalse);
-        
-            if (iInputContext)
-                {
-                iFlags = iFlags | EOwnsInputContext;
-                // also need to provide skin for the editor in this case
-                static_cast<CEikEdwin*>( iField )->SetSkinBackgroundControlContextL( iInputContext );  
-                }
-            );
+        iInputContext = CAknsFrameBackgroundControlContext::NewL(
+            KAknsIIDQsnFrInput, TRect(0,0,0,0), TRect(0,0,0,0), EFalse );
+        iFlags = iFlags | EOwnsInputContext;
+        // also need to provide skin for the editor in this case
+        static_cast<CEikEdwin*>( iField )->SetSkinBackgroundControlContextL( iInputContext );
         }
 
     if ( iInputContext )
@@ -516,7 +509,7 @@
         {
         case KAknsMessageSkinChange:
         case KEikDynamicLayoutVariantSwitch:
-            TRAP_IGNORE(CreateIconL());
+            CreateIconL();
             break;
             
         default: