cellular/sssettings/src/rsssettings.cpp
changeset 42 35488577e233
parent 33 8d5d7fcf9b59
equal deleted inserted replaced
38:bc103bfb69cf 42:35488577e233
   498     __ASSERT_DEBUG( aSetting <= KSSSettingsLastSetting, 
   498     __ASSERT_DEBUG( aSetting <= KSSSettingsLastSetting, 
   499                     Panic( SSSettingsPanicInvalidRequest ) );
   499                     Panic( SSSettingsPanicInvalidRequest ) );
   500 
   500 
   501     TInt error(KErrNone);
   501     TInt error(KErrNone);
   502     TInt value(0);
   502     TInt value(0);
   503     if ( error != KErrNone )
       
   504         {
       
   505         return error;
       
   506         }
       
   507 
   503 
   508     // If Get fails, we try to save the default data.
   504     // If Get fails, we try to save the default data.
   509     switch ( aSetting )
   505     switch ( aSetting )
   510         {
   506         {
   511         case ESSSettingsCug:
   507         case ESSSettingsCug:
   758 
   754 
   759     __ASSERT_DEBUG( aSetting <= KSSSettingsLastSetting, 
   755     __ASSERT_DEBUG( aSetting <= KSSSettingsLastSetting, 
   760                     Panic( SSSettingsPanicInvalidRequest ) );
   756                     Panic( SSSettingsPanicInvalidRequest ) );
   761 
   757 
   762     TInt error(KErrNone);
   758     TInt error(KErrNone);
   763     if ( error != KErrNone )
       
   764         {
       
   765         return error;
       
   766         }
       
   767 
   759 
   768     switch ( aSetting )
   760     switch ( aSetting )
   769         {
   761         {
   770         case ESSSettingsCug:
   762         case ESSSettingsCug:
   771             {
   763             {