201039_01
authorhgs
Tue, 12 Oct 2010 15:02:43 +0300
changeset 77 8a984d260a2d
parent 76 cb32bcc88bad
child 78 3f0699f2e14c
201039_01
sysstatemgmt/systemstatemgr/dompolicy/src/domainpolicy2.cpp
--- a/sysstatemgmt/systemstatemgr/dompolicy/src/domainpolicy2.cpp	Fri Oct 08 14:33:25 2010 +0300
+++ b/sysstatemgmt/systemstatemgr/dompolicy/src/domainpolicy2.cpp	Tue Oct 12 15:02:43 2010 +0300
@@ -128,23 +128,21 @@
 @param aPtr  Will have the state specification structure used in the array .
 @param aNumElements Will hold the number of elements in the array.
 
-@return will return the version of the domain policy if the feature is enabled or else returns KErrNotSupported.
- */
+@return will return the version of the domain policy if the feature is enabled or else returns KErrNone.
+*/
 #ifdef SYMBIAN_INCLUDE_APP_CENTRIC
 EXPORT_C  TInt DmPolicy::GetStateSpec(TAny*& aPtr, TUint& aNumElements)
-    {
-    TInt version = KErrNotSupported;
+    {    
     aPtr = (TAny*) StateSpecification;
     aNumElements = sizeof(StateSpecification)/sizeof(SDmStateSpecV1);    
-    version = KSDmStateSpecV1;
-    return version;    
+    return KSDmStateSpecV1;    
     }
 #else
 EXPORT_C  TInt DmPolicy::GetStateSpec(TAny*& aPtr, TUint& aNumElements)
     {
     aPtr = NULL;
     aNumElements = 0;
-    return KErrNotSupported;  
+    return KErrNone;  
     }
 #endif //SYMBIAN_INCLUDE_APP_CENTRIC