callcontinuity/vccutils/src/vccspsettings.cpp
branchRCL_3
changeset 12 876a3df1f464
parent 0 a4daefaec16c
equal deleted inserted replaced
11:6134b5029079 12:876a3df1f464
   954         iDtAllowedWhenCsOriginated = NULL;
   954         iDtAllowedWhenCsOriginated = NULL;
   955         }
   955         }
   956     TRAP_IGNORE( iDtAllowedWhenCsOriginated = aValue.AllocL() );
   956     TRAP_IGNORE( iDtAllowedWhenCsOriginated = aValue.AllocL() );
   957     }
   957     }
   958 // ---------------------------------------------------------------------------
   958 // ---------------------------------------------------------------------------
   959 // 
   959 // Update old property or add new property to the service entry 
   960 // ---------------------------------------------------------------------------
   960 // ---------------------------------------------------------------------------
   961 //
   961 //
   962 void CVccSPSettings::AddOrUpdatePropertyL( CSPEntry& aServiceEntry, 
   962 void CVccSPSettings::AddOrUpdatePropertyL( CSPEntry& aServiceEntry, 
   963     const TServicePropertyName aName, TInt aValue )
   963     const TServicePropertyName aName, TInt aValue )
   964     {
   964     {
   969     if( err == KErrNotFound )
   969     if( err == KErrNotFound )
   970         {
   970         {
   971         CSPProperty* property = CSPProperty::NewLC(); 
   971         CSPProperty* property = CSPProperty::NewLC(); 
   972         property->SetName( aName );
   972         property->SetName( aName );
   973         property->SetValue( aValue );
   973         property->SetValue( aValue );
       
   974         // New property, don't need to check return value
       
   975         // coverity[check_return] coverity[unchecked_value]
   974         aServiceEntry.AddPropertyL( *property );
   976         aServiceEntry.AddPropertyL( *property );
   975         CleanupStack::PopAndDestroy( property );
   977         CleanupStack::PopAndDestroy( property );
   976         }    
   978         }    
   977     }
   979     }
   978 
   980 
   979 // ---------------------------------------------------------------------------
   981 // ---------------------------------------------------------------------------
   980 // Update old property of add new property to the service entry 
   982 // Update old property or add new property to the service entry 
   981 // ---------------------------------------------------------------------------
   983 // ---------------------------------------------------------------------------
   982 //
   984 //
   983 void CVccSPSettings::AddOrUpdatePropertyL( CSPEntry& aServiceEntry, 
   985 void CVccSPSettings::AddOrUpdatePropertyL( CSPEntry& aServiceEntry, 
   984     const TServicePropertyName aName, const TDesC& aValue )
   986     const TServicePropertyName aName, const TDesC& aValue )
   985     {
   987     {
   989     if( err == KErrNotFound )
   991     if( err == KErrNotFound )
   990         {
   992         {
   991         CSPProperty* property = CSPProperty::NewLC(); 
   993         CSPProperty* property = CSPProperty::NewLC(); 
   992         property->SetName( aName );
   994         property->SetName( aName );
   993         property->SetValue( aValue );
   995         property->SetValue( aValue );
       
   996         // New property, don't need to check return value
       
   997         // coverity[check_return] coverity[unchecked_value]
   994         aServiceEntry.AddPropertyL( *property );
   998         aServiceEntry.AddPropertyL( *property );
   995         CleanupStack::PopAndDestroy( property );
   999         CleanupStack::PopAndDestroy( property );
   996         }    
  1000         }    
   997     }
  1001     }
   998     
  1002