diff options
| author | Neil <nyamatongwe@gmail.com> | 2018-03-01 11:03:37 +1100 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2018-03-01 11:03:37 +1100 |
| commit | ae4b1d41a3e763240a5e9f60f76cedab55e1e5e2 (patch) | |
| tree | b201f21a3c0bcae634b8633c1c3d8ea704529b46 /src/XPM.cxx | |
| parent | 5b88f2c8d74cdeab860dc8a009428f9474bc2c8b (diff) | |
| download | scintilla-mirror-ae4b1d41a3e763240a5e9f60f76cedab55e1e5e2.tar.gz | |
Mark variables as const where simple.
Diffstat (limited to 'src/XPM.cxx')
| -rw-r--r-- | src/XPM.cxx | 2 |
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)); } } |
