omadrm/drmengine/roap/src/RoapEng.cpp
branchRCL_3
changeset 72 1481bf457703
parent 71 1221b68b8a5f
child 77 00671737faf2
--- a/omadrm/drmengine/roap/src/RoapEng.cpp	Tue Aug 31 15:29:38 2010 +0300
+++ b/omadrm/drmengine/roap/src/RoapEng.cpp	Wed Sep 01 12:21:16 2010 +0100
@@ -80,7 +80,6 @@
 #include "DcfEntry.h"
 #include "Base64.h"
 #include "drmsettingsplugininternalcrkeys.h"
-#include "buffercontainers.h"
 
 
 #define STUB_C_CLASS_IN_NAMESPACE( n, c ) namespace n { class c: public CBase { private: c(); public: virtual ~c(); }; } n::c::c() {} n::c::~c() {}
@@ -2163,7 +2162,7 @@
 #ifndef __WINS__
     TInt numPhone = 0;
     TUint32 caps = 0;
-    DRM::CNameContainer* tsyName(NULL);
+    TName tsyName;
     RMobilePhone phone;
     RTelServer etelServer;
     RTelServer::TPhoneInfo phoneInfo;
@@ -2174,20 +2173,18 @@
     CleanupClosePushL( etelServer );
 
     User::LeaveIfError( etelServer.LoadPhoneModule( KMmTsyModuleName ) );
-    User::LeaveIfError( etelServer.EnumeratePhones( numPhone ) );
+    User::LeaveIfError( etelServer.EnumeratePhones( numPhone) );
 
-    tsyName = DRM::CNameContainer::NewLC();
     for (TInt i(0); i < numPhone; i++)
         {
         User::LeaveIfError( etelServer.GetPhoneInfo( i, phoneInfo ) );
-        User::LeaveIfError( etelServer.GetTsyName( i,tsyName->iBuffer ) );
+        User::LeaveIfError( etelServer.GetTsyName( i,tsyName ) );
 
-        if ( !tsyName->iBuffer.CompareF( KMmTsyModuleName ) )
+        if ( tsyName.CompareF( KMmTsyModuleName ) == 0)
             {
             break;
             }
         }
-    CleanupStack::PopAndDestroy( tsyName );
 
     User::LeaveIfError( phone.Open( etelServer, phoneInfo.iName ) );
     CleanupClosePushL( phone );
@@ -2366,7 +2363,7 @@
             TPair pair;
             pair.iCid = aContentIDs[i];
             pair.iTtid = aTransIDs[i];
-            array.AppendL( pair );
+            array.Append( pair );
             }
 
         iDcfRep->SetTtid( array, status );