aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/SubStyles.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-06-04 14:42:02 +1000
committerNeil <nyamatongwe@gmail.com>2018-06-04 14:42:02 +1000
commit7e9f3208e5c6eb5036cbdfc0f85245f0aa97ab7c (patch)
tree3f111e56f15dad263e9993d354d7c29f82a49e5f /lexlib/SubStyles.h
parent63a526d16065007457d26a577c3848c99269f0e8 (diff)
downloadscintilla-mirror-7e9f3208e5c6eb5036cbdfc0f85245f0aa97ab7c.tar.gz
Use const in lexlib headers.
Diffstat (limited to 'lexlib/SubStyles.h')
-rw-r--r--lexlib/SubStyles.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/lexlib/SubStyles.h b/lexlib/SubStyles.h
index 682909bf2..3e99efe83 100644
--- a/lexlib/SubStyles.h
+++ b/lexlib/SubStyles.h
@@ -120,11 +120,11 @@ public:
}
int Allocate(int styleBase, int numberStyles) {
- int block = BlockFromBaseStyle(styleBase);
+ const int block = BlockFromBaseStyle(styleBase);
if (block >= 0) {
if ((allocated + numberStyles) > stylesAvailable)
return -1;
- int startBlock = styleFirst + allocated;
+ const int startBlock = styleFirst + allocated;
allocated += numberStyles;
classifiers[block].Allocate(startBlock, numberStyles);
return startBlock;
@@ -134,17 +134,17 @@ public:
}
int Start(int styleBase) {
- int block = BlockFromBaseStyle(styleBase);
+ const int block = BlockFromBaseStyle(styleBase);
return (block >= 0) ? classifiers[block].Start() : -1;
}
int Length(int styleBase) {
- int block = BlockFromBaseStyle(styleBase);
+ const int block = BlockFromBaseStyle(styleBase);
return (block >= 0) ? classifiers[block].Length() : 0;
}
int BaseStyle(int subStyle) const {
- int block = BlockFromStyle(subStyle);
+ const int block = BlockFromStyle(subStyle);
if (block >= 0)
return classifiers[block].Base();
else
@@ -174,7 +174,7 @@ public:
}
void SetIdentifiers(int style, const char *identifiers) {
- int block = BlockFromStyle(style);
+ const int block = BlockFromStyle(style);
if (block >= 0)
classifiers[block].SetIdentifiers(style, identifiers);
}