Skip to content

Commit 3b24707

Browse files
committed
fix: some more compiler warnings and hints
1 parent 8a667f2 commit 3b24707

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

source/main.pas

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3802,10 +3802,13 @@ procedure TMainForm.actDropObjectsExecute(Sender: TObject);
38023802

38033803
procedure TMainForm.actLaunchCommandlineExecute(Sender: TObject);
38043804
var
3805-
path, log, cmd, MySQLArgs, TerminalArgs: String;
3805+
path, log, cmd, MySQLArgs: String;
38063806
Conn: TDBConnection;
38073807
P: TProcess;
3808+
{$IFNDEF WINDOWS}
3809+
TerminalArgs: String;
38083810
SpacePos: Integer;
3811+
{$ENDIF}
38093812

38103813
function DetectTerminal: string;
38113814
const

source/reformatter.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ function TfrmReformatter.FormatSqlOnlineSqlformatOrg(SQL: String): String;
282282
JsonResponseStr := Response.Text;
283283
if JsonResponseStr.IsEmpty then
284284
raise Exception.Create(_('Empty result from online reformatter'));
285-
JsonParser := TJSONParser.Create(JsonResponseStr);
285+
JsonParser := TJSONParser.Create(JsonResponseStr, []);
286286
JsonTmp := JsonParser.Parse;
287287
Result := JsonTmp.GetPath('result').AsString;
288288
JsonTmp.Free;

source/texteditor.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ procedure TfrmTextEditor.menuFormatCodeOnceClick(Sender: TObject);
458458
// Reformat code if possible
459459
try
460460
if FHighlighter is TSynJScriptSyn then begin
461-
JsonParser := TJSONParser.Create(MemoText.Text);
461+
JsonParser := TJSONParser.Create(MemoText.Text, []);
462462
MemoText.Text := JsonParser.Parse.FormatJSON();
463463
JsonParser.Free;
464464
MemoText.SelStart := 0;

0 commit comments

Comments
 (0)