cellular/SSSettings/src/RSSSettings.cpp
branchRCL_3
changeset 19 7d48bed6ce0c
parent 0 ff3b6d0fd310
child 20 987c9837762f
--- a/cellular/SSSettings/src/RSSSettings.cpp	Thu Aug 19 10:28:14 2010 +0300
+++ b/cellular/SSSettings/src/RSSSettings.cpp	Tue Aug 31 15:45:17 2010 +0300
@@ -23,18 +23,18 @@
 #include    <e32base.h>
 #include    <rmmcustomapi.h>
 #include    <mmtsy_names.h>
-#include    <PSVariables.h>
+#include    <PSVariables.h> 
 #include    <startupdomainpskeys.h>
-#include    <centralrepository.h>       // Central repository
-#include    <SSSettingsPrivateCRKeys.h>  // Settings Central Repository keys.
+#include    <centralrepository.h> // central repository 
+#include    <sssettingsprivatecrkeys.h> // settings central repository keys. 
 #include    <telservicesinternalcrkeys.h>
 #include    <telservicesvariant.hrh>
 
-#include    "RSSSettings.h"
-#include    "MSSSettingsObserver.h"
-#include    "CSSSettingsNotifier.h"
-#include    "CSSSettingsAlsNotifier.h"
-#include    "SSSettingsLogger.h"
+#include    "rsssettings.h" 
+#include    "msssettingsobserver.h" 
+#include    "csssettingsnotifier.h" 
+#include    "csssettingsalsnotifier.h" 
+#include    "sssettingslogger.h" 
 
 // CONSTANTS
 _LIT( KPanicCat, "SSSettings" );
@@ -500,10 +500,6 @@
 
     TInt error(KErrNone);
     TInt value(0);
-    if ( error != KErrNone )
-        {
-        return error;
-        }
 
     // If Get fails, we try to save the default data.
     switch ( aSetting )
@@ -706,41 +702,41 @@
     __SSSLOGSTRING1("[SSS]    RSSSettings::IsALSSupported alsCSPError value: %d", aAlsCspError );
     
     // When PP ALS is on and used SIM card suppports CSP ALS then alsCSPSupport returns EFALSE and alsCSPError KErrNotSupported but ALS functionality
-	// needs to be shown therefore KErrNone is returned.
+    // needs to be shown therefore KErrNone is returned.
     if ( aPpAlsValue && !aSimAlsValue && aAlsCspSupport == FALSE && aAlsCspError == KErrNotSupported  )
         {
         error = KErrNone;
-    	}		   
+        }          
     else if ( aPpAlsValue && aSimAlsValue && aAlsCspSupport == FALSE )
-    	{
-    	error = KErrNone;
-    	}
+        {
+        error = KErrNone;
+        }
     else if ( aPpAlsValue && aSimAlsValue && aAlsCspSupport == TRUE  )
         {
-    	error = KErrNone;
-    	}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
+        error = KErrNone;
+        }                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
     else if ( aPpAlsValue && !aSimAlsValue && aAlsCspSupport == FALSE  )
-    	{
-    	error = KErrNone;
-    	}
+        {
+        error = KErrNone;
+        }
     else if ( aPpAlsValue && !aSimAlsValue && aAlsCspSupport == TRUE  )
-    	{
-    	error = KErrNone;
-    	}
+        {
+        error = KErrNone;
+        }
     else if ( !aPpAlsValue && aSimAlsValue && aAlsCspSupport == TRUE  )
-    	{
-    	error = KErrNone;
-    	}
+        {
+        error = KErrNone;
+        }
     else if ( !aPpAlsValue && aSimAlsValue && aAlsCspSupport == FALSE  )
-   		{
-    	error = KErrNotSupported;
-   		}
+        {
+        error = KErrNotSupported;
+        }
     else if ( !aPpAlsValue && !aSimAlsValue && aAlsCspSupport == TRUE  )
-		{
-		error = KErrNone;
-		}
-							
-   	return error;   
+        {
+        error = KErrNone;
+        }
+                            
+    return error;   
     }
     
 // ---------------------------------------------------------
@@ -760,10 +756,6 @@
                     Panic( SSSettingsPanicInvalidRequest ) );
 
     TInt error(KErrNone);
-    if ( error != KErrNone )
-        {
-        return error;
-        }
 
     switch ( aSetting )
         {