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
commitc63c9dc7ca058d1b352c14f8052769d541c7e955 (patch)
tree726bbd8e98196bc0b224448af3ed6227fae96d3e /lexlib/CharacterCategory.cxx
parent023603c25dfdc73b0a51baaf3309d1bf18e04261 (diff)
downloadscintilla-mirror-c63c9dc7ca058d1b352c14f8052769d541c7e955.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);
}