phonebookui/Phonebook2/CommandsExtension/src/CPbk2CopyNumberToClipboardCmd.cpp
branchRCL_3
changeset 15 e8e3147d53eb
parent 0 e686773b3f54
child 64 c1e8ba0c2b16
--- a/phonebookui/Phonebook2/CommandsExtension/src/CPbk2CopyNumberToClipboardCmd.cpp	Fri Mar 12 15:41:25 2010 +0200
+++ b/phonebookui/Phonebook2/CommandsExtension/src/CPbk2CopyNumberToClipboardCmd.cpp	Mon Mar 15 12:39:26 2010 +0200
@@ -211,19 +211,7 @@
 MVPbkStoreContactField* CPbk2CopyNumberToClipboardCmd::FocusedFieldLC
     ( MVPbkStoreContact& aStoreContact )
     {
-    TInt index = KErrNotFound;
-    CPbk2PresentationContact* presentationContact = 
-        CPbk2PresentationContact::NewL( aStoreContact,
-            iAppServices->FieldProperties() );
-    CleanupStack::PushL( presentationContact );
-
-    if (iUiControl)
-        {
-        index = presentationContact->PresentationFields().StoreIndexOfField( 
-                iUiControl->FocusedFieldIndex() );
-        }
-    CleanupStack::PopAndDestroy( presentationContact );
-    
+    TInt index = iUiControl->FocusedFieldIndex();
     if ( index != KErrNotFound )
         {
         // Use FieldAtLC to avoid the unvalidity of the field after new