Skip to content

Commit fe2b819

Browse files
Coding Style: fixed capitalization of local variable names
1 parent 7ff4bc8 commit fe2b819

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Source/VirtualTrees.pas

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6674,7 +6674,7 @@ procedure TCustomVirtualTreeOptions.SetMiscOptions(const Value: TVTMiscOptions);
66746674
Invalidate;
66756675
if not (csDesigning in ComponentState) then
66766676
begin
6677-
if toFullRepaintOnResize in TobeSet + ToBeCleared then
6677+
if toFullRepaintOnResize in ToBeSet + ToBeCleared then
66786678
RecreateWnd;
66796679
if toAcceptOLEDrop in ToBeSet then
66806680
RegisterDragDrop(Handle, DragManager as IDropTarget);
@@ -11798,15 +11798,15 @@ destructor TVTHeader.Destroy;
1179811798

1179911799
procedure TVTHeader.FontChanged(Sender: TObject);
1180011800
var
11801-
i: Integer;
11801+
I: Integer;
1180211802
lMaxHeight: Integer;
1180311803
begin
1180411804
if toAutoChangeScale in Treeview.TreeOptions.AutoOptions then
1180511805
begin
1180611806
// Find the largest Columns[].Spacing
1180711807
lMaxHeight := 0;
11808-
for i:= 0 to Self.Columns.Count - 1 do
11809-
lMaxHeight := Max(lMaxHeight, Columns[i].Spacing);
11808+
for I := 0 to Self.Columns.Count - 1 do
11809+
lMaxHeight := Max(lMaxHeight, Columns[I].Spacing);
1181011810
// Calculate the required size based on the font, this is important as the use migth just vave increased the size of the icon font
1181111811
with TBitmap.Create do
1181211812
try
@@ -12132,17 +12132,17 @@ function TVTHeader.CanWriteColumns: Boolean;
1213212132

1213312133
procedure TVTHeader.ChangeScale(M, D: Integer);
1213412134
var
12135-
i: Integer;
12135+
I: Integer;
1213612136
begin
1213712137
// This method is only executed if toAutoChangeScale is set
1213812138
if not ParentFont then
1213912139
FFont.Size := MulDiv(FFont.Size, M, D);
1214012140
Self.Height := MulDiv(FHeight, M, D);
1214112141
// Scale the columns widths too
12142-
for i := 0 to FColumns.Count - 1 do
12142+
for I := 0 to FColumns.Count - 1 do
1214312143
begin
12144-
Self.FColumns[i].Width := MulDiv(Self.FColumns[i].Width, M, D);
12145-
end;//for i
12144+
Self.FColumns[I].Width := MulDiv(Self.FColumns[I].Width, M, D);
12145+
end;//for I
1214612146
end;
1214712147

1214812148
//----------------------------------------------------------------------------------------------------------------------
@@ -14728,7 +14728,7 @@ function TBaseVirtualTree.CollectSelectedNodesLTR(MainColumn, NodeLeft, NodeRigh
1472814728
if WithCheck and (Run.CheckType <> ctNone) then
1472914729
Inc(TextLeft, CheckOffset);
1473014730
if WithImages and HasImage(Run, ikNormal, MainColumn) then
14731-
Inc(TextLeft, GetNodeImageSize(run).cx + 2);
14731+
Inc(TextLeft, GetNodeImageSize(Run).cx + 2);
1473214732
if WithStateImages and HasImage(Run, ikState, MainColumn) then
1473314733
Inc(TextLeft, StateImageOffset);
1473414734
NextTop := CurrentTop + Integer(NodeHeight[Run]);
@@ -14905,7 +14905,7 @@ function TBaseVirtualTree.CollectSelectedNodesRTL(MainColumn, NodeLeft, NodeRigh
1490514905
if WithCheck and (Run.CheckType <> ctNone) then
1490614906
Dec(TextRight, CheckOffset);
1490714907
if WithImages and HasImage(Run, ikNormal, MainColumn) then
14908-
Dec(TextRight, GetNodeImageSize(run).cx + 2);
14908+
Dec(TextRight, GetNodeImageSize(Run).cx + 2);
1490914909
if WithStateImages and HasImage(Run, ikState, MainColumn) then
1491014910
Dec(TextRight, StateImageOffset);
1491114911
NextTop := CurrentTop + Integer(NodeHeight[Run]);
@@ -15027,7 +15027,7 @@ procedure TBaseVirtualTree.ClearNodeBackground(const PaintInfo: TVTPaintInfo; Us
1502715027
else
1502815028
Offset := Point(0, 0);
1502915029

15030-
DoBeforeItemErase(Canvas, Node, R, Backcolor, EraseAction);
15030+
DoBeforeItemErase(Canvas, Node, R, BackColor, EraseAction);
1503115031

1503215032
with Canvas do
1503315033
begin
@@ -24211,7 +24211,7 @@ procedure TBaseVirtualTree.HandleMouseDblClick(var Message: TWMMouse; const HitI
2421124211
DoNodeDblClick(HitInfo);
2421224212

2421324213
Node := nil;
24214-
if (hiOnItem in HitInfo.HitPositions) and (hitInfo.HitColumn > NoColumn) and
24214+
if (hiOnItem in HitInfo.HitPositions) and (HitInfo.HitColumn > NoColumn) and
2421524215
(coFixed in FHeader.FColumns[HitInfo.HitColumn].FOptions) then
2421624216
begin
2421724217
if hiUpperSplitter in HitInfo.HitPositions then
@@ -36561,7 +36561,7 @@ function TCustomVirtualStringTree.ContentToHTML(Source: TVSTTextSourceType; Capt
3656136561
Buffer.Add('</tr>');
3656236562
Buffer.AddNewLine;
3656336563
if Assigned(FOnAfterHeaderExport) then
36564-
FOnAfterHeaderExport(self, etHTML);
36564+
FOnAfterHeaderExport(Self, etHTML);
3656536565
end;
3656636566

3656736567
// Now go through the tree.
@@ -36879,7 +36879,7 @@ function TCustomVirtualStringTree.ContentToRTF(Source: TVSTTextSourceType): RawB
3687936879
if (Text[I] = WideLF) then
3688036880
Buffer.Add( '{\par}' )
3688136881
else
36882-
if (Text[i] <> WideCR) then
36882+
if (Text[I] <> WideCR) then
3688336883
begin
3688436884
Buffer.Add(Format('\u%d\''3f', [SmallInt(Text[I])]));
3688536885
Continue;
@@ -36985,7 +36985,7 @@ function TCustomVirtualStringTree.ContentToRTF(Source: TVSTTextSourceType): RawB
3698536985
TextPlusFont(Columns[I].Text, Header.Font);
3698636986
Buffer.Add('\cell');
3698736987
if Assigned(FOnAfterColumnExport) then
36988-
FOnAfterColumnExport( self, etRTF, Columns[I] );
36988+
FOnAfterColumnExport(Self, etRTF, Columns[I]);
3698936989
end;
3699036990
Buffer.Add('\row');
3699136991
if Assigned(FOnAfterHeaderExport) then

0 commit comments

Comments
 (0)