diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-F3090A98-267F-5310-83F4-93FD5CB760D6.dita --- a/Symbian3/PDK/Source/GUID-F3090A98-267F-5310-83F4-93FD5CB760D6.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-F3090A98-267F-5310-83F4-93FD5CB760D6.dita Tue Mar 30 11:56:28 2010 +0100 @@ -1,37 +1,37 @@ - - - - - -Using -CCirBufThis document describes how to use CCirBuf. -
Before adding/removing objects

The buffer itself -is not allocated until CCirBufBase::SetLengthL() is called. -Therefore, the first steps must always be to construct the CCirBuf object -and then call its CCirBufBase::SetLengthL() member function.

Also -note that SetLengthL() can leave so it's useful to call it -under a trap harness.

class Test - { -public: - Test(){a=b=0;} - Test(TInt anInt){a=b=anInt;} -private - TInt a; - TInt b; - }; -CCirBuf<Test>* cbInt=new CCirBuf<Test>; -TRAPD(ret,cbInt->SetLengthL(3)); // max capacity is 3 - // and allocates buffer -Test one(1); -Test two(2); -... -cbInt->Add(&one); // Can now start adding/removing objects -... -delete cbInt;
+ + + + + +Using +CCirBufThis document describes how to use CCirBuf. +
Before adding/removing objects

The buffer itself +is not allocated until CCirBufBase::SetLengthL() is called. +Therefore, the first steps must always be to construct the CCirBuf object +and then call its CCirBufBase::SetLengthL() member function.

Also +note that SetLengthL() can leave so it's useful to call it +under a trap harness.

class Test + { +public: + Test(){a=b=0;} + Test(TInt anInt){a=b=anInt;} +private + TInt a; + TInt b; + }; +CCirBuf<Test>* cbInt=new CCirBuf<Test>; +TRAPD(ret,cbInt->SetLengthL(3)); // max capacity is 3 + // and allocates buffer +Test one(1); +Test two(2); +... +cbInt->Add(&one); // Can now start adding/removing objects +... +delete cbInt;
\ No newline at end of file