Browse Source

* fix #39329: adjust visibilties of PT and TArr in TVector<> and TDeque<> so that they can be correctly used either by descendants or users outside of the class

Sven Barth 3 years ago
parent
commit
be069c8fa8
2 changed files with 8 additions and 2 deletions
  1. 4 1
      packages/fcl-stl/src/gdeque.pp
  2. 4 1
      packages/fcl-stl/src/gvector.pp

+ 4 - 1
packages/fcl-stl/src/gdeque.pp

@@ -23,10 +23,13 @@ interface
 
 type
   generic TDeque<T>=class
-  private
+  public
   type
     PT=^T;
+  protected
+  type
     TArr=array of T;
+  private
   var
     FData:TArr;
     FDataSize:SizeUInt;

+ 4 - 1
packages/fcl-stl/src/gvector.pp

@@ -21,10 +21,13 @@ type
   { TVector }
 
   generic TVector<T> = class
-  private
+  public
   type
     PT = ^ T;
+  protected
+  type
     TArr = array of T;
+  private
   var
     FCapacity:SizeUInt;
     FDataSize:SizeUInt;