aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2010-05-11 03:37:09 +0000
committernyamatongwe <unknown>2010-05-11 03:37:09 +0000
commit8a6ef2beb841be1bb169d18fab79fc718e9b37ca (patch)
treef80a7049bc1a33110b230fdd18e70c54fe63f41d /src
parent09ea6df59ba1e1b5097087a8c6b6891180a65853 (diff)
downloadscintilla-mirror-8a6ef2beb841be1bb169d18fab79fc718e9b37ca.tar.gz
Made method const.
Diffstat (limited to 'src')
-rw-r--r--src/XPM.cxx2
-rw-r--r--src/XPM.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/XPM.cxx b/src/XPM.cxx
index 2a0399837..d1389efa0 100644
--- a/src/XPM.cxx
+++ b/src/XPM.cxx
@@ -38,7 +38,7 @@ static size_t MeasureLength(const char *s) {
return i;
}
-ColourAllocated XPM::ColourFromCode(int ch) {
+ColourAllocated XPM::ColourFromCode(int ch) const {
return colourCodeTable[ch]->allocated;
#ifdef SLOW
for (int i=0; i<nColours; i++) {
diff --git a/src/XPM.h b/src/XPM.h
index 71970a6b5..cb05aae3e 100644
--- a/src/XPM.h
+++ b/src/XPM.h
@@ -24,7 +24,7 @@ class XPM {
char codeTransparent;
char *codes;
ColourPair *colours;
- ColourAllocated ColourFromCode(int ch);
+ ColourAllocated ColourFromCode(int ch) const;
void FillRun(Surface *surface, int code, int startX, int y, int x);
char **lines;
ColourPair *colourCodeTable[256];