Skip to content

Commit c6dffe1

Browse files
committed
fix: a few compiler warnings
1 parent 1895959 commit c6dffe1

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed

source/dbconnection.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ TDBObject = class(TPersistent)
188188

189189
NodeType, GroupType: TListNodeType;
190190
constructor Create(OwnerConnection: TDBConnection);
191-
destructor Destroy;
191+
destructor Destroy; override;
192192
procedure Assign(Source: TPersistent); override;
193193
procedure UnloadDetails;
194194
procedure Drop;

source/dbstructures.interbase.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,9 @@ function TInterbaseProvider.GetSql(AId: TQueryId): string;
236236
' RDB$CHARACTER_SET_ID'+
237237
' FROM RDB$COLLATIONS';
238238
qGetCharsets: Result := 'SELECT RDB$CHARACTER_SET_NAME AS "Charset", RDB$CHARACTER_SET_NAME AS "Description" FROM RDB$CHARACTER_SETS';
239+
else Result := inherited;
239240
end;
240241
end;
241242

242243

243-
end.
244+
end.

source/main.pas

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7331,9 +7331,6 @@ procedure TMainForm.SynMemoQueryShowHint(Sender: TObject; HintInfo: PHintInfo);
73317331
Obj: TDBObject;
73327332
i, ColumnNameChars: Integer;
73337333
Column: TTableColumn;
7334-
Parameters: TRoutineParamList;
7335-
Params: TStringList;
7336-
Param: TRoutineParam;
73377334
begin
73387335
// Activate hint for SQL function in query editors
73397336
Edit := Sender as TSynEdit;
@@ -7797,8 +7794,6 @@ procedure TMainForm.SynMemoQueryDragDrop(Sender, Source: TObject; X,
77977794
procedure TMainForm.FormDropFiles(Sender: TObject;
77987795
const FileNames: array of string);
77997796
var
7800-
i: Integer;
7801-
Tab: TQueryTab;
78027797
Files: TStringList;
78037798
begin
78047799
// One or more files from explorer or somewhere else was dropped onto the

source/table_editor.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1855,6 +1855,7 @@ procedure TfrmTableEditor.listColumnsCreateEditor(Sender: TBaseVirtualTree;
18551855
// Start cell editor
18561856
VT := Sender as TLazVirtualStringTree;
18571857
Col := Sender.GetNodeData(Node);
1858+
EditLink := nil;
18581859
case Column of
18591860
ColNumDatatype: begin // Datatype pulldown
18601861
DatatypeEditor := TDatatypeEditorLink.Create(VT, True, Col^);

0 commit comments

Comments
 (0)