diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-D51600DD-B79A-5A4D-B2D1-36C0A9F9D115.dita --- a/Symbian3/PDK/Source/GUID-D51600DD-B79A-5A4D-B2D1-36C0A9F9D115.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-D51600DD-B79A-5A4D-B2D1-36C0A9F9D115.dita Tue Mar 30 11:56:28 2010 +0100 @@ -1,29 +1,29 @@ - - - - - -How -to use CleanupDeletePushL()CleanupDeletePushL() pushes a TCleanupItem onto -the cleanup stack ready for CleanupStack::PopAndDestroy() to -delete. -

The CleanupDeletePushL() templated function constructs -and pushes a TCleanupItem onto the cleanup stack. When CleanupStack::PopAndDestroy() is -called, the object encapsulated by the TCleanupItem is deleted.

-... -CTestOne* one = new (ELeave) CTestOne; -CleanupDeletePushL(one); -one->SetTextL(KTxtHelloWorld); -CleanupStack::PopAndDestroy(); -... -

The TCleanupItem object encapsulates a pointer to the CTestOne object; -the cleanup operation is the static function Delete() of -the templated class CleanupDelete<class T>. This is implemented -by simply deleting CTestOne.

+ + + + + +How +to use CleanupDeletePushL()CleanupDeletePushL() pushes a TCleanupItem onto +the cleanup stack ready for CleanupStack::PopAndDestroy() to +delete. +

The CleanupDeletePushL() templated function constructs +and pushes a TCleanupItem onto the cleanup stack. When CleanupStack::PopAndDestroy() is +called, the object encapsulated by the TCleanupItem is deleted.

+... +CTestOne* one = new (ELeave) CTestOne; +CleanupDeletePushL(one); +one->SetTextL(KTxtHelloWorld); +CleanupStack::PopAndDestroy(); +... +

The TCleanupItem object encapsulates a pointer to the CTestOne object; +the cleanup operation is the static function Delete() of +the templated class CleanupDelete<class T>. This is implemented +by simply deleting CTestOne.

\ No newline at end of file