Explorar el Código

* 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 hace 13 años
padre
commit
df9c8652be
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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;