equal
deleted
inserted
replaced
36 // --------------------------------------------------------- |
36 // --------------------------------------------------------- |
37 // Items commented in header. |
37 // Items commented in header. |
38 // --------------------------------------------------------- |
38 // --------------------------------------------------------- |
39 CCSXHHtmlTOC1* CCSXHHtmlTOC1::NewL(const TDesC& aName, const TDesC& aFolder,const TInt& aDrive, TUid aViewId, TInt32 aPriority) |
39 CCSXHHtmlTOC1* CCSXHHtmlTOC1::NewL(const TDesC& aName, const TDesC& aFolder,const TInt& aDrive, TUid aViewId, TInt32 aPriority) |
40 { |
40 { |
41 CCSXHHtmlTOC1* self = new(ELeave) CCSXHHtmlTOC1(aName,aFolder,aDrive, aViewId, aPriority); |
41 CCSXHHtmlTOC1* self = new (ELeave) CCSXHHtmlTOC1(aName, aFolder, aDrive, aViewId, aPriority); |
42 if(self->IsValid()) |
42 return self; |
43 return self; |
|
44 delete self; |
|
45 return NULL; |
|
46 } |
43 } |
47 |
44 |
48 // --------------------------------------------------------- |
45 // --------------------------------------------------------- |
49 // Items commented in header. |
46 // Items commented in header. |
50 // --------------------------------------------------------- |
47 // --------------------------------------------------------- |