File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,8 @@ TRibbonMarkupElement = record
4949 TRibbonMarkupElementList = class (TList<TRibbonMarkupElement>)
5050 strict private
5151 fResourceName: string;
52+ private
5253 class var fContainer: TObjectList<TRibbonMarkupElementList>;
53- class constructor Create;
54- class destructor Destroy;
5554 public
5655 class function LookupListByResourceName (const pResourceName: string): TRibbonMarkupElementList;
5756 function TryGetItem (pID: integer; out pItem: TRibbonMarkupElement): boolean;
@@ -515,16 +514,6 @@ constructor TRibbonMarkupElementList.Create(pResourceName: string);
515514 fContainer.Add(Self);
516515end ;
517516
518- class constructor TRibbonMarkupElementList.Create;
519- begin
520- fContainer := nil ;
521- end ;
522-
523- class destructor TRibbonMarkupElementList.Destroy;
524- begin
525- FreeAndNil(fContainer);
526- end ;
527-
528517class function TRibbonMarkupElementList.LookupListByResourceName (const pResourceName: string): TRibbonMarkupElementList;
529518var
530519 lElement: TRibbonMarkupElementList;
@@ -1386,4 +1375,11 @@ function TUIRibbon._Release: Integer;
13861375 Result := -1 ;
13871376end ;
13881377
1378+
1379+ initialization
1380+ TRibbonMarkupElementList.fContainer := nil ;
1381+
1382+ finalization
1383+ FreeAndNil(TRibbonMarkupElementList.fContainer);
1384+
13891385end .
You can’t perform that action at this time.
0 commit comments