mmappcomponents/mmmtpdataprovider/mmmtpdpplugins/abstractmediamtpdataprovider/src/cabstractmediamtpdataprovider.cpp
changeset 50 762d760dcfdf
parent 48 b7b49303d0c0
equal deleted inserted replaced
48:b7b49303d0c0 50:762d760dcfdf
   668 //
   668 //
   669 // ---------------------------------------------------------------------------
   669 // ---------------------------------------------------------------------------
   670 //
   670 //
   671 void CAbstractMediaMtpDataProvider::InsertL( RArray<TUint>& aArray, const TUint aProperCode ) const
   671 void CAbstractMediaMtpDataProvider::InsertL( RArray<TUint>& aArray, const TUint aProperCode ) const
   672     {
   672     {
   673     CleanupClosePushL( aArray ); 
       
   674     TInt err = KErrNone;
   673     TInt err = KErrNone;
   675     err = aArray.Find( aProperCode );
   674     err = aArray.Find( aProperCode );
   676     if ( err == KErrNotFound )
   675     if ( err == KErrNotFound )
   677         err = aArray.Append( aProperCode );
   676         err = aArray.Append( aProperCode );
   678 
   677 
   679     User::LeaveIfError( err );
   678     User::LeaveIfError( err );
   680     CleanupStack::Pop(); 
       
   681     }
   679     }
   682 
   680 
   683 // end of file
   681 // end of file