Browse Source

Disallow published array properties in mode Delphi

Ondrej Pokorny 1 week ago
parent
commit
c53e775a09
2 changed files with 3 additions and 3 deletions
  1. 1 2
      compiler/pdecvar.pas
  2. 2 1
      packages/chm/src/chmsitemap.pas

+ 1 - 2
compiler/pdecvar.pas

@@ -389,8 +389,7 @@ implementation
          { property parameters ? }
          if try_to_consume(_LECKKLAMMER) then
            begin
-              if (p.visibility=vis_published) and
-                not (m_delphi in current_settings.modeswitches) then
+              if (p.visibility=vis_published) then
                 Message(parser_e_cant_publish_that_property);
               { create a list of the parameters }
               p.parast:=tparasymtable.create(nil,0);

+ 2 - 1
packages/chm/src/chmsitemap.pas

@@ -112,6 +112,8 @@ type
     procedure AddURL(const URL:string);
     procedure AddType(const AType:string);
     procedure Sort(Compare: TListSortCompare);
+  public
+    property SubItem[ index :integer]:TChmSiteMapSubItem read getsubitem;
   published
     property Children: TChmSiteMapItems read FChildren write SetChildren;
     property Name: String read FName write FName;
@@ -126,7 +128,6 @@ type
     property FrameName: String read FFrameName write FFrameName;
     property WindowName: String read FWindowName write FWindowName;
     property Merge: String read FMerge write FMerge;
-    property SubItem[ index :integer]:TChmSiteMapSubItem read getsubitem;
     property SubItemcount  :integer read getsubitemcount;
   end;