aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/CharacterCategory.cxx
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2014-01-21 09:45:29 +1100
committerNeil Hodgson <nyamatongwe@gmail.com>2014-01-21 09:45:29 +1100
commit2bd8a54e0624143ee5128d1e224b1635b2c5d1f4 (patch)
tree6acd5402304cd8f9efc400d11ca32dab95d5410d /lexlib/CharacterCategory.cxx
parent56d581a730cd2c5dd0959c6b3bd532c9f5ad42e2 (diff)
downloadscintilla-mirror-2bd8a54e0624143ee5128d1e224b1635b2c5d1f4.tar.gz
Added ELEMENTS macro and use it to clarify determining size of arrays.
Diffstat (limited to 'lexlib/CharacterCategory.cxx')
-rw-r--r--lexlib/CharacterCategory.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/lexlib/CharacterCategory.cxx b/lexlib/CharacterCategory.cxx
index a83776028..765469a3f 100644
--- a/lexlib/CharacterCategory.cxx
+++ b/lexlib/CharacterCategory.cxx
@@ -9,6 +9,7 @@
#include <algorithm>
+#include "StringCopy.h"
#include "CharacterCategory.h"
#ifdef SCI_NAMESPACE
@@ -3275,7 +3276,7 @@ const int catRanges[] = {
const int maxUnicode = 0x10ffff;
const int maskCategory = 0x1F;
-const int nRanges = sizeof(catRanges) / sizeof(catRanges[0]);
+const int nRanges = ELEMENTS(catRanges);
}