diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-25 01:53:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-25 01:53:38 +0300 |
commit | 953949fa4a61b2c9c4e53ccea2c2f7b28f79e62d (patch) | |
tree | cdbcddc0713a61695d355aa65c93a0ae8477bd29 /src/render | |
parent | 22e43e0f0d16fc207e3d3b7df013c50e0bfb17d7 (diff) | |
download | plus-953949fa4a61b2c9c4e53ccea2c2f7b28f79e62d.tar.gz plus-953949fa4a61b2c9c4e53ccea2c2f7b28f79e62d.tar.bz2 plus-953949fa4a61b2c9c4e53ccea2c2f7b28f79e62d.tar.xz plus-953949fa4a61b2c9c4e53ccea2c2f7b28f79e62d.zip |
Add restrict keyword in softwaregraphicsdef.hpp
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/sdl2graphics.cpp | 3 | ||||
-rw-r--r-- | src/render/sdl2softwaregraphics.cpp | 2 | ||||
-rw-r--r-- | src/render/sdlgraphics.cpp | 3 | ||||
-rw-r--r-- | src/render/softwaregraphicsdef.hpp | 4 |
4 files changed, 7 insertions, 5 deletions
diff --git a/src/render/sdl2graphics.cpp b/src/render/sdl2graphics.cpp index 4910e15aa..a8a4962d9 100644 --- a/src/render/sdl2graphics.cpp +++ b/src/render/sdl2graphics.cpp @@ -506,7 +506,8 @@ void SDLGraphics::calcTileVertexesInline(ImageVertexes *restrict const vert, calcTileSDL(vert, x, y); } -void SDLGraphics::calcTileSDL(ImageVertexes *const vert, int x, int y) const +void SDLGraphics::calcTileSDL(ImageVertexes *restrict const vert, + int x, int y) const restrict2 { // Check that preconditions for blitting are met. if (!vert || !vert->image || !vert->image->mTexture) diff --git a/src/render/sdl2softwaregraphics.cpp b/src/render/sdl2softwaregraphics.cpp index 841cd18bb..8e777fb15 100644 --- a/src/render/sdl2softwaregraphics.cpp +++ b/src/render/sdl2softwaregraphics.cpp @@ -705,7 +705,7 @@ void SDL2SoftwareGraphics::calcTileVertexesInline(ImageVertexes * calcTileSDL(vert, x, y); } -void SDL2SoftwareGraphics::calcTileSDL(ImageVertexes *const vert, +void SDL2SoftwareGraphics::calcTileSDL(ImageVertexes *restrict const vert, int x, int y) const restrict2 { // Check that preconditions for blitting are met. diff --git a/src/render/sdlgraphics.cpp b/src/render/sdlgraphics.cpp index a31ae0ca3..7743644f2 100644 --- a/src/render/sdlgraphics.cpp +++ b/src/render/sdlgraphics.cpp @@ -686,7 +686,8 @@ void SDLGraphics::calcTileVertexesInline(ImageVertexes *restrict const vert, calcTileSDL(vert, x, y); } -void SDLGraphics::calcTileSDL(ImageVertexes *const vert, int x, int y) const +void SDLGraphics::calcTileSDL(ImageVertexes *restrict const vert, + int x, int y) const restrict2 { // Check that preconditions for blitting are met. if (!vert || !vert->image || !vert->image->mSDLSurface) diff --git a/src/render/softwaregraphicsdef.hpp b/src/render/softwaregraphicsdef.hpp index 5f9cfad28..598b03266 100644 --- a/src/render/softwaregraphicsdef.hpp +++ b/src/render/softwaregraphicsdef.hpp @@ -21,5 +21,5 @@ */ public: - void calcTileSDL(ImageVertexes *const vert, - int x, int y) const override final; + void calcTileSDL(ImageVertexes *restrict const vert, + int x, int y) const restrict2 override final; |