equal
deleted
inserted
replaced
36 CleanupStack::PushL( clone ); |
36 CleanupStack::PushL( clone ); |
37 |
37 |
38 clone->iDomStringPool = iDomStringPool->CloneL(); |
38 clone->iDomStringPool = iDomStringPool->CloneL(); |
39 if ( iRootNode ) |
39 if ( iRootNode ) |
40 { |
40 { |
41 clone->iRootNode = iRootNode->CloneL( *clone->iDomStringPool ); |
41 clone->iRootNode = iRootNode->CloneL( *clone->iDomStringPool, ETrue ); |
42 } |
42 } |
43 |
43 |
44 CleanupStack::Pop( clone ); |
44 CleanupStack::Pop( clone ); |
45 return clone; |
45 return clone; |
46 } |
46 } |
99 RReadStream& aStream ) |
99 RReadStream& aStream ) |
100 { |
100 { |
101 ChspsDomDocument* self = new( ELeave ) ChspsDomDocument; |
101 ChspsDomDocument* self = new( ELeave ) ChspsDomDocument; |
102 |
102 |
103 CleanupStack::PushL( self ); |
103 CleanupStack::PushL( self ); |
|
104 self->ConstructL(); |
104 aStream >> *self; |
105 aStream >> *self; |
105 CleanupStack::Pop(self); |
106 CleanupStack::Pop(self); |
106 |
107 |
107 return self; |
108 return self; |
108 } |
109 } |
172 // ChspsDomDocument::InternalizeL |
173 // ChspsDomDocument::InternalizeL |
173 // ----------------------------------------------------------------------------- |
174 // ----------------------------------------------------------------------------- |
174 // |
175 // |
175 EXPORT_C void ChspsDomDocument::InternalizeL( RReadStream& aStream ) |
176 EXPORT_C void ChspsDomDocument::InternalizeL( RReadStream& aStream ) |
176 { |
177 { |
177 if(iDomStringPool) |
178 iDomStringPool->Reset(); |
178 { |
179 iDomStringPool->InternalizeL( aStream ); |
179 delete iDomStringPool; |
180 |
180 iDomStringPool = NULL; |
|
181 } |
|
182 iDomStringPool = ChspsDomStringPool::NewL( aStream ); |
|
183 |
|
184 if ( iRootNode ) |
181 if ( iRootNode ) |
185 { |
182 { |
186 delete iRootNode; |
183 delete iRootNode; |
187 iRootNode = NULL; |
184 iRootNode = NULL; |
188 } |
185 } |