diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-26 21:29:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-26 21:29:59 +0300 |
commit | a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709 (patch) | |
tree | 1b1e98a615e2c03641c99b66cb4667b56f7087c3 /src/graphicsvertexes.cpp | |
parent | 012a10fd8153f3ddb775dde1e4dba4456f2aa9de (diff) | |
download | mv-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.gz mv-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.bz2 mv-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.tar.xz mv-a33a8dc48761d7cb2b4c1c468e1e3b188bcbf709.zip |
Add const to some classes.
Diffstat (limited to 'src/graphicsvertexes.cpp')
-rw-r--r-- | src/graphicsvertexes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/graphicsvertexes.cpp b/src/graphicsvertexes.cpp index 189f28348..b6451a3e4 100644 --- a/src/graphicsvertexes.cpp +++ b/src/graphicsvertexes.cpp @@ -189,7 +189,7 @@ GraphicsVertexes::~GraphicsVertexes() { } -void GraphicsVertexes::init(int x, int y, int w, int h) +void GraphicsVertexes::init(const int x, const int y, const int w, const int h) { mPtr = 0; mX = x; @@ -213,9 +213,9 @@ void GraphicsVertexes::setLoadAsOpenGL(int useOpenGL) } #endif -void GraphicsVertexes::pushSDL(SDL_Rect r1, SDL_Rect r2) +void GraphicsVertexes::pushSDL(const SDL_Rect r1, const SDL_Rect r2) { - DoubleRect *r = new DoubleRect(); + DoubleRect *const r = new DoubleRect(); r->src = r1; r->dst = r2; sdl[mPtr].mList.push_back(r); |