Skip to content

Commit

Permalink
Fixed IfThen parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
wanderlan.anjos committed Feb 26, 2009
1 parent 188b799 commit ce21c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ExtToPascal.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ procedure WriteUnits;
for I := 0 to Event.Params.Count - 1 do
with TParam(Event.Params.Objects[I]) do
if not AnsiEndsText('Singleton', Name) then begin
write(Pas, IfThen(not First, ','), '''', Name, '''');
write(Pas, IfThen(not First, ',', ''), '''', Name, '''');
First := false;
// Simple types
if CaseOf(Typ, ['integer', 'string', 'boolean', 'double', 'TDateTime']) <> -1 then
Expand Down

0 comments on commit ce21c29

Please sign in to comment.