Преглед на файлове

* replaced TCmdStrListItem getter function with a property

git-svn-id: trunk@41906 -
Jonas Maebe преди 6 години
родител
ревизия
33d57ac646
променени са 1 файла, в които са добавени 1 реда и са изтрити 7 реда
  1. 1 7
      compiler/cclasses.pas

+ 1 - 7
compiler/cclasses.pas

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