aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/XPM.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-03-01 11:03:37 +1100
committerNeil <nyamatongwe@gmail.com>2018-03-01 11:03:37 +1100
commit1b808ad6a4e623c564513a72cedc17581426942f (patch)
treef0671c60ec9680f4c4d2e9f7e8c85028b833b0cf /src/XPM.cxx
parent13f7cab5a5894313d2245ae56d6f2e7b1f0d7307 (diff)
downloadscintilla-mirror-1b808ad6a4e623c564513a72cedc17581426942f.tar.gz
Backport: Mark variables as const where simple.
Backport of changeset 6470:d78a4b522662.
Diffstat (limited to 'src/XPM.cxx')
-rw-r--r--src/XPM.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XPM.cxx b/src/XPM.cxx
index 35bfc79aa..a446724fb 100644
--- a/src/XPM.cxx
+++ b/src/XPM.cxx
@@ -49,7 +49,7 @@ ColourDesired XPM::ColourFromCode(int ch) const {
void XPM::FillRun(Surface *surface, int code, int startX, int y, int x) const {
if ((code != codeTransparent) && (startX != x)) {
- PRectangle rc = PRectangle::FromInts(startX, y, x, y + 1);
+ const PRectangle rc = PRectangle::FromInts(startX, y, x, y + 1);
surface->FillRectangle(rc, ColourFromCode(code));
}
}