Skip to content

Commit bfee70c

Browse files
committed
fix (TConfigINI): New get function default is not optional anymore
1 parent 59985be commit bfee70c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

utils/config.simba

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,11 +500,10 @@ begin
500500
Result := ReadINI(Section, KeyName, Self.Path);
501501
end;
502502

503-
function TConfigINI.Get(Section, KeyName: String; DefaultValue: String = ''): String; overload;
503+
function TConfigINI.Get(Section, KeyName, DefaultValue: String): String; overload;
504504
begin
505505
Result := ReadINI(Section, KeyName, Self.Path);
506-
if Result = '' then
507-
Result := DefaultValue;
506+
if Result = '' then Result := DefaultValue;
508507
end;
509508

510509
(*

0 commit comments

Comments
 (0)