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