Skip to content

Commit

Permalink
Fixed compiler warning about signed and unsinged types
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmarder committed Dec 26, 2024
1 parent 403e36e commit 11e7b6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Source/VirtualTrees.BaseTree.pas
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ TClipboardFormats = class(TStringList)
const APlusSelectedHotBM :TBitmap; const AMinusBM : TBitmap; const AMinusHotBM : TBitmap;
const AMinusSelectedHotBM :TBitmap; var ASize : TSize) of object;

TVTColumnHeaderSpanningEvent = procedure(Sender: TVTHeader; Column: TColumnIndex; var Count: Cardinal) of object;
TVTColumnHeaderSpanningEvent = procedure(Sender: TVTHeader; Column: TColumnIndex; var Count: Integer) of object;

// search, sort
TVTCompareEvent = procedure(Sender: TBaseVirtualTree; Node1, Node2: PVirtualNode; Column: TColumnIndex;
Expand Down Expand Up @@ -1058,7 +1058,7 @@ TBaseVirtualTree = class abstract(TVTBaseAncestor)
procedure DoStructureChange(Node: PVirtualNode; Reason: TChangeReason); virtual;
procedure DoTimerScroll; virtual;
procedure DoUpdating(State: TVTUpdateState); virtual;
procedure DoColumnHeaderSpanning(Column: TColumnIndex; var Count: Cardinal); virtual;
procedure DoColumnHeaderSpanning(Column: TColumnIndex; var Count: Integer); virtual;
function DoValidateCache: Boolean; virtual;
procedure DragAndDrop(AllowedEffects: DWord; const DataObject: TVTDragDataObject; var DragEffect: Integer); virtual;
procedure DragCanceled; override;
Expand Down Expand Up @@ -9676,7 +9676,7 @@ procedure TBaseVirtualTree.DoColumnDblClick(Column: TColumnIndex; Shift: TShiftS

//----------------------------------------------------------------------------------------------------------------------

procedure TBaseVirtualTree.DoColumnHeaderSpanning(Column: TColumnIndex; var Count: Cardinal);
procedure TBaseVirtualTree.DoColumnHeaderSpanning(Column: TColumnIndex; var Count: Integer);
begin
if Assigned(FOnColumnHeaderSpanning) then
FOnColumnHeaderSpanning(Self.Header, Column, Count);
Expand Down
2 changes: 1 addition & 1 deletion Source/VirtualTrees.Header.pas
Original file line number Diff line number Diff line change
Expand Up @@ -5743,7 +5743,7 @@ procedure TVirtualTreeColumns.PaintHeader(TargetCanvas : TCanvas; R : TRect; con
var
TargetRect : TRect;
MaxX : TDimension;
Count: Cardinal;
Count: Integer;
EndCol: TColumnIndex;
begin
if IsRectEmpty(R) then
Expand Down

0 comments on commit 11e7b6f

Please sign in to comment.