Skip to content

Commit 1f69cf9

Browse files
committed
Use constant.
1 parent 66da13e commit 1f69cf9

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

ReClass.NET/Nodes/BaseFunctionPtrNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected Size Draw(ViewInfo view, int x, int y, string type, string name)
3939

4040
x += TextPadding;
4141

42-
x = AddIcon(view, x, y, Icons.Function, -1, HotSpotType.None);
42+
x = AddIcon(view, x, y, Icons.Function, HotSpot.NoneId, HotSpotType.None);
4343

4444
var tx = x;
4545

ReClass.NET/Nodes/BaseNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ protected void DrawInvalidMemoryIndicator(ViewInfo view, int y)
513513
{
514514
if (!view.Memory.ContainsValidData)
515515
{
516-
AddIcon(view, 0, y, Properties.Resources.B16x16_Error, -1, HotSpotType.None);
516+
AddIcon(view, 0, y, Properties.Resources.B16x16_Error, HotSpot.NoneId, HotSpotType.None);
517517
}
518518
}
519519
}

ReClass.NET/Nodes/BaseWrapperArrayNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ protected Size Draw(ViewInfo view, int x, int y, string type)
3939
AddSelection(view, x, y, view.Font.Height);
4040

4141
x = AddOpenClose(view, x, y);
42-
x = AddIcon(view, x, y, Icons.Array, -1, HotSpotType.None);
42+
x = AddIcon(view, x, y, Icons.Array, HotSpot.NoneId, HotSpotType.None);
4343

4444
var tx = x;
4545
x = AddAddressOffset(view, x, y);

ReClass.NET/Nodes/ClassInstanceNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public override Size Draw(ViewInfo view, int x, int y)
3030
AddSelection(view, x, y, view.Font.Height);
3131

3232
x = AddOpenClose(view, x, y);
33-
x = AddIcon(view, x, y, Icons.Class, -1, HotSpotType.None);
33+
x = AddIcon(view, x, y, Icons.Class, HotSpot.NoneId, HotSpotType.None);
3434

3535
var tx = x;
3636
x = AddAddressOffset(view, x, y);

ReClass.NET/Nodes/ClassNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public override Size Draw(ViewInfo view, int x, int y)
110110

111111
var tx = x;
112112

113-
x = AddIcon(view, x, y, Icons.Class, -1, HotSpotType.None);
113+
x = AddIcon(view, x, y, Icons.Class, HotSpot.NoneId, HotSpotType.None);
114114
x = AddText(view, x, y, view.Settings.OffsetColor, 0, AddressFormula) + view.Font.Width;
115115

116116
x = AddText(view, x, y, view.Settings.TypeColor, HotSpot.NoneId, "Class") + view.Font.Width;

ReClass.NET/Nodes/EnumNode.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Diagnostics.Contracts;
44
using System.Drawing;
@@ -166,7 +166,7 @@ public override Size Draw(ViewInfo view, int x, int y)
166166
AddSelection(view, x, y, view.Font.Height);
167167

168168
x = AddOpenClose(view, x, y);
169-
x = AddIcon(view, x, y, Icons.Class, -1, HotSpotType.None);
169+
x = AddIcon(view, x, y, Icons.Class, HotSpot.NoneId, HotSpotType.None);
170170

171171
x = AddAddressOffset(view, x, y);
172172

ReClass.NET/Nodes/FunctionNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public override Size Draw(ViewInfo view, int x, int y)
4545

4646
x += TextPadding;
4747

48-
x = AddIcon(view, x, y, Icons.Function, -1, HotSpotType.None);
48+
x = AddIcon(view, x, y, Icons.Function, HotSpot.NoneId, HotSpotType.None);
4949

5050
var tx = x;
5151

ReClass.NET/Nodes/PointerNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public override Size Draw(ViewInfo view, int x, int y)
6565
{
6666
x += TextPadding;
6767
}
68-
x = AddIcon(view, x, y, Icons.Pointer, -1, HotSpotType.None);
68+
x = AddIcon(view, x, y, Icons.Pointer, HotSpot.NoneId, HotSpotType.None);
6969

7070
var tx = x;
7171
x = AddAddressOffset(view, x, y);

ReClass.NET/Nodes/VirtualMethodTableNode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public override Size Draw(ViewInfo view, int x, int y)
4646
AddSelection(view, x, y, view.Font.Height);
4747

4848
x = AddOpenClose(view, x, y);
49-
x = AddIcon(view, x, y, Icons.VTable, -1, HotSpotType.None);
49+
x = AddIcon(view, x, y, Icons.VTable, HotSpot.NoneId, HotSpotType.None);
5050

5151
var tx = x;
5252
x = AddAddressOffset(view, x, y);

0 commit comments

Comments
 (0)