Browse Source

* Added overloaded constructor so omitting argument will not cause problems

michael 4 years ago
parent
commit
e36441b661
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/rtl/classes.pas

+ 6 - 0
packages/rtl/classes.pas

@@ -867,6 +867,7 @@ type
   private
     function GetDataString : String;
   public
+    constructor Create; reintroduce; overload;
     constructor Create(const aString: String); virtual; overload;
     function ReadString(Count: Integer): string;
     procedure WriteString(const AString: string);
@@ -1529,6 +1530,11 @@ begin
     end;
 end;
 
+constructor TStringStream.Create;
+begin
+  Create('');
+end;
+
 constructor TStringStream.Create(const aString: String);
 
 var