equal
deleted
inserted
replaced
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 1997-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
16 |
16 |
17 #include <s32mem.h> |
17 #include <s32mem.h> |
18 #include <tzid.h> |
18 #include <tzid.h> |
19 #include "tzidinternal.h" |
19 #include "tzidinternal.h" |
20 #include <tz.h> |
20 #include <tz.h> |
|
21 #include "OstTraceDefinitions.h" |
|
22 #ifdef OST_TRACE_COMPILER_IN_USE |
|
23 #include "tzidTraces.h" |
|
24 #endif |
|
25 |
21 |
26 |
22 |
27 |
23 /** |
28 /** |
24 The maximum number of digits for a user-defined time zone (when it is 0x20000 - |
29 The maximum number of digits for a user-defined time zone (when it is 0x20000 - |
25 1). |
30 1). |
86 aStream >> size; |
91 aStream >> size; |
87 |
92 |
88 const TInt KMaxSize = KMaxTInt / 2; |
93 const TInt KMaxSize = KMaxTInt / 2; |
89 if (size < 0 || size >= KMaxSize) |
94 if (size < 0 || size >= KMaxSize) |
90 { |
95 { |
|
96 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_ERROR, CTZID_INTERNALIZEL, "CTzId::InternalizeL;Invalid size of Time zone id =%d",size ); |
|
97 |
91 User::Leave( KErrArgument ); |
98 User::Leave( KErrArgument ); |
92 } |
99 } |
93 |
100 |
94 // Don't create the tz id if the size is 0 - it hasn't been set. |
101 // Don't create the tz id if the size is 0 - it hasn't been set. |
95 if (size) |
102 if (size) |