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).
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.