From ae4b1d41a3e763240a5e9f60f76cedab55e1e5e2 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 1 Mar 2018 11:03:37 +1100 Subject: Mark variables as const where simple. --- src/XPM.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/XPM.cxx') 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)); } } -- cgit v1.2.3