diff -r f8e15b44d440 -r 4843bb5893b6 mtpfws/mtpfw/dataproviders/devdp/src/cmtpdevicedatastore.cpp --- a/mtpfws/mtpfw/dataproviders/devdp/src/cmtpdevicedatastore.cpp Fri Feb 19 23:40:44 2010 +0200 +++ b/mtpfws/mtpfw/dataproviders/devdp/src/cmtpdevicedatastore.cpp Fri Mar 12 15:46:41 2010 +0200 @@ -875,7 +875,7 @@ TInt errorCode = ValidateString(aDateTime, dateTime, offset); if(KErrNone == errorCode) { - StringToDateTime(dateTime); + StringToDateTimeL(dateTime); iDateTime->SetL(dateTime); StoreL(); //now set the system time by calling user SetUTCTime @@ -923,7 +923,7 @@ *TTime time format YYYYMMDD:hhmmss.ssssss. Right now microsecond part is * not implemented. **/ -void CMTPDeviceDataStore::StringToDateTime(TDes& aDateTime ) +void CMTPDeviceDataStore::StringToDateTimeL(TDes& aDateTime ) { __FLOG(_L8("StringToDateTime - Entry")); TBuf<30> newTime; @@ -956,8 +956,7 @@ } else { - _LIT(KPanic, "date time "); - User::Panic(KPanic, 3); + User::Leave( KErrArgument ); } __FLOG_1(_L("Processed DateTime: %S"), &aDateTime); __FLOG(_L8("StringToDateTime - Exit"));