Browse Source

* Capitalize TScoped.Assign

Michaël Van Canneyt 3 months ago
parent
commit
9a7a8f0d5c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      rtl/objpas/types.pp

+ 3 - 3
rtl/objpas/types.pp

@@ -523,7 +523,7 @@ type
     class operator Finalize(var hdl: TScoped);
     class operator :=(aObj : T) : TScoped; 
     class operator :=(const aObj : TScoped) : T; 
-    procedure assign(aObj : T); inline;
+    procedure Assign(aObj : T); inline;
     function Swap(AObj: T): T;
     function Get : T;
   end;
@@ -2080,9 +2080,9 @@ begin
   hdl.obj:=nil;
 end;
 
-procedure TScoped.assign(aObj : T);
+procedure TScoped.Assign(aObj : T);
 begin
-  swap(aObj);
+  Swap(aObj);
 end;
 
 function TScoped.Swap(AObj:T):T;