Procházet zdrojové kódy

* add default parameter values defined in implementation also to interface
(they don't have effect when they only appear in the implementation, and
therefore this situation will cause an error in the future)

git-svn-id: trunk@21523 -

Jonas Maebe před 13 roky
rodič
revize
df9c8652be
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      rtl/objpas/sysutils/datih.inc

+ 2 - 2
rtl/objpas/sysutils/datih.inc

@@ -136,8 +136,8 @@ function StrToTime(const S: Ansistring): TDateTime;                   {$ifdef SY
 function StrToTime(const S: ShortString; separator : char): TDateTime;{$ifdef SYSUTILSINLINE}inline;{$endif}
 function StrToTime(const S: AnsiString; separator : char): TDateTime; {$ifdef SYSUTILSINLINE}inline;{$endif}
 function StrToTime(const S: string; FormatSettings : TFormatSettings): TDateTime;
-function StrToDate(const S: ShortString; const useformat : string; separator : char): TDateTime;{$ifdef SYSUTILSINLINE}inline;{$endif}
-function StrToDate(const S: AnsiString; const useformat : string; separator : char): TDateTime;{$ifdef SYSUTILSINLINE}inline;{$endif}
+function StrToDate(const S: ShortString; const useformat : string; separator : char = #0): TDateTime;{$ifdef SYSUTILSINLINE}inline;{$endif}
+function StrToDate(const S: AnsiString; const useformat : string; separator : char = #0): TDateTime;{$ifdef SYSUTILSINLINE}inline;{$endif}
 function StrToTime(const S: PChar; Len : integer; separator : char = #0): TDateTime;
 function StrToDate(const S: PChar; Len : integer; const useformat : string; separator : char = #0): TDateTime;
 function StrToDateTime(const S: string): TDateTime;