Browse Source

* replaced TCmdStrListItem getter function with a property

git-svn-id: trunk@41906 -
Jonas Maebe 6 years ago
parent
commit
33d57ac646
1 changed files with 1 additions and 7 deletions
  1. 1 7
      compiler/cclasses.pas

+ 1 - 7
compiler/cclasses.pas

@@ -397,7 +397,7 @@ type
           constructor Create(const s:TCmdStr);
           constructor Create(const s:TCmdStr);
           destructor  Destroy;override;
           destructor  Destroy;override;
           function GetCopy:TLinkedListItem;override;
           function GetCopy:TLinkedListItem;override;
-          function Str:TCmdStr; {$ifdef CCLASSESINLINE}inline;{$endif}
+          property Str: TCmdStr read FPStr;
        end;
        end;
 
 
        { string container }
        { string container }
@@ -2383,12 +2383,6 @@ end;
       end;
       end;
 
 
 
 
-    function TCmdStrListItem.Str:TCmdStr;
-      begin
-        Str:=FPStr;
-      end;
-
-
     function TCmdStrListItem.GetCopy:TLinkedListItem;
     function TCmdStrListItem.GetCopy:TLinkedListItem;
       begin
       begin
         Result:=(inherited GetCopy);
         Result:=(inherited GetCopy);