This document shows briefly how to replace a C++ array with a Symbian platform object.
C++ arrays can always be replaced with a TFixedArray<class T,TInt
S>
. For example:
TChar iSeparators[EMaxSeparators]; CCoeControl* iControls[ENumControls];
becomes:
TFixedArray<TChar,EMaxSeparators> iSeparators; TFixedArray<CCoeControl*,ENumControls> iControls;
The contained class must have a default constructor. The array can also be initialised from a C++ array (using a bitwise copy).