diff -r 7d48bed6ce0c -r 987c9837762f phoneclientserver/EnPolicy/Src/DosEnPolicy/CDOSEmergencyNumberPolicy.cpp --- a/phoneclientserver/EnPolicy/Src/DosEnPolicy/CDOSEmergencyNumberPolicy.cpp Tue Aug 31 15:45:17 2010 +0300 +++ b/phoneclientserver/EnPolicy/Src/DosEnPolicy/CDOSEmergencyNumberPolicy.cpp Wed Sep 01 12:15:03 2010 +0100 @@ -17,7 +17,7 @@ // INCLUDE FILES -#include "cdosemergencynumberpolicy.h" +#include "CDOSEmergencyNumberPolicy.h" #include #include @@ -319,21 +319,21 @@ } } - //match is wrong, only part of ememergency number is matched - int newmatchlen = 0; - for (int i = place; i < iProductSpecificList.Length(); i++) - { - if(iProductSpecificList [i] != KEnPolicySDNumberSeparator ) - newmatchlen++; - else - break; - } - - if (length != newmatchlen) - { - return EFalse; - } - + //match is wrong, only part of ememergency number is matched + int newmatchlen = 0; + for (int i = place; i < iProductSpecificList.Length(); i++) + { + if(iProductSpecificList [i] != KEnPolicySDNumberSeparator ) + newmatchlen++; + else + break; + } + + if (length != newmatchlen) + { + return EFalse; + } + // if we get so far, its ok. return ETrue; @@ -349,22 +349,22 @@ // void CDosEmergencyNumberPolicy::ParseNumber( TPhCltTelephoneNumber& aTelNumber ) { - // Does number contains prefix. If yes then remove it - + // Does number contains prefix. If yes then remove it + if ( 0 == aTelNumber.FindC( KSipPrefix ) || 0 == aTelNumber.FindC( KTelPrefix ) || - 0 == aTelNumber.FindC( KSosPrefix ) ) + 0 == aTelNumber.FindC( KSosPrefix ) ) { aTelNumber.Delete( 0, KPrefixLength ); - } - // Does Number contains domain part. If yes remove it at beging of @ character. + } + // Does Number contains domain part. If yes remove it at beging of @ character. TInt atIndex = aTelNumber.Find( KAt ); TInt telNumberLength = aTelNumber.Length(); - if ( 0 < atIndex && - atIndex < telNumberLength ) + if ( 0 < atIndex && + atIndex < telNumberLength ) { - aTelNumber.Delete( atIndex, telNumberLength - atIndex ); - } + aTelNumber.Delete( atIndex, telNumberLength - atIndex ); + } } // -----------------------------------------------------------------------------