瀏覽代碼

* 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 年之前
父節點
當前提交
be069c8fa8
共有 2 個文件被更改,包括 8 次插入2 次删除
  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;