Skip to content

Commit 2f02d66

Browse files
author
delphidabbler
committed
Fixed bugs introduced in previous commit
1 parent 9d391cb commit 2f02d66

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Src/UUtils.pas

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ function ParseSQLDateTime(const SQLDateTime: string): TDateTime;
337337
raise EConvertError.CreateFmt(sBadDate, [SQLDateTime]);
338338
end;
339339

340-
function TryParseSQLDateTime(const SQLDateStr: string; out Value: TDateTime):
340+
function TryParseSQLDateTime(const SQLDateTime: string; out Value: TDateTime):
341341
Boolean;
342342
var
343343
Year, Month, Day, Hour, Min, Sec: Word;
@@ -438,16 +438,6 @@ function TryStrToCardinal(const S: string; out Value: Cardinal): Boolean;
438438
Value := Int64Rec(Value64).Lo;
439439
end;
440440

441-
function TryStrToWord(const S: string; out Value: Word): Boolean;
442-
var
443-
ValueInt: Integer;
444-
begin
445-
Result := TryStrToInt(S, ValueInt)
446-
and (LongRec(ValueInt).Hi = 0);
447-
if Result then
448-
Value := LongRec(ValueInt).Lo;
449-
end;
450-
451441
function IsEqualBytes(const BA1, BA2: TBytes; const Count: Cardinal):
452442
Boolean;
453443
var

0 commit comments

Comments
 (0)