TDeque: implement protected proprty Data
Original Reporter info from Mantis: Bart @flyingsheep
-
Reporter name: Bart Broersma
Original Reporter info from Mantis: Bart @flyingsheep
- Reporter name: Bart Broersma
Description:
The (parts of the) patches for #38306 (closed) and #38406 (closed) (handling of managed data) require that derived or specilized instances of TDeque have access to the internal data structure of the data array.
Due to issue #38363, it is currently possible to access FData directly in specialized classes (in certain circumstances).
Once this is fixed, it becomes impossible to implement meaningfull overrides for MoveData(), ClearData() etc.
Attached patch implement a protected read only property Data, so specialized and derived classes can access individual elements of the FData array.
Mantis conversion info:
- Mantis ID: 38407
- OS: Windows
- OS Build: 10
- Platform: i386
- Version: 3.3.1
- Fixed in version: 3.3.1
- Fixed in revision: 48436 (#5e7291af)
- Target version: 3.2.2