Browse Source

* Make hexdigits a global constant

Michaël Van Canneyt 3 years ago
parent
commit
b1412ec5c0
2 changed files with 5 additions and 3 deletions
  1. 4 0
      rtl/objpas/sysconst.pp
  2. 1 3
      rtl/objpas/sysutils/sysstr.inc

+ 4 - 0
rtl/objpas/sysconst.pp

@@ -190,6 +190,10 @@ const
   SLongDayNameSat = 'Saturday';
   SLongDayNameSun = 'Sunday';
 
+const
+   // Do not localize
+   HexDigits: array[0..15] of char = '0123456789ABCDEF';
+
 Function GetRunError(Errno : Word) : String;
 
 Implementation

+ 1 - 3
rtl/objpas/sysutils/sysstr.inc

@@ -1,3 +1,4 @@
+
 {
     *********************************************************************
     Copyright (C) 1997, 1998 Gertjan Schouten
@@ -877,9 +878,6 @@ end;
 
 {   IntToHex returns a string representing the hexadecimal value of Value   }
 
-const
-   HexDigits: array[0..15] of char = '0123456789ABCDEF';
-
 function IntToHex(Value: Longint; Digits: integer): string;
 var i: integer;
 begin