From f0f4f43d1263f946be23b75de4de28a4731cc93a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 25 Dec 2015 00:31:58 +0300 Subject: Add restrict keyword into graphicsdef.hpp --- src/render/surfacegraphics.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/render/surfacegraphics.cpp') diff --git a/src/render/surfacegraphics.cpp b/src/render/surfacegraphics.cpp index e94aba5a5..b5d710ec4 100644 --- a/src/render/surfacegraphics.cpp +++ b/src/render/surfacegraphics.cpp @@ -40,8 +40,8 @@ SurfaceGraphics::~SurfaceGraphics() { } -void SurfaceGraphics::drawImage(const Image *const image, - int dstX, int dstY) +void SurfaceGraphics::drawImage(const Image *restrict const image, + int dstX, int dstY) restrict2 { FUNC_BLOCK("Graphics::drawImage", 1) // Check that preconditions for blitting are met. @@ -73,8 +73,8 @@ void SurfaceGraphics::drawImage(const Image *const image, #endif } -void SurfaceGraphics::copyImage(const Image *const image, - int dstX, int dstY) +void SurfaceGraphics::copyImage(const Image *restrict const image, + int dstX, int dstY) restrict2 { FUNC_BLOCK("Graphics::drawImage", 1) // Check that preconditions for blitting are met. @@ -99,8 +99,8 @@ void SurfaceGraphics::copyImage(const Image *const image, #endif } -void SurfaceGraphics::drawImageCached(const Image *const image, - int x, int y) +void SurfaceGraphics::drawImageCached(const Image *restrict const image, + int x, int y) restrict2 { FUNC_BLOCK("Graphics::drawImageCached", 1) // Check that preconditions for blitting are met. @@ -133,6 +133,6 @@ void SurfaceGraphics::drawImageCached(const Image *const image, #endif } -void SurfaceGraphics::completeCache() +void SurfaceGraphics::completeCache() restrict2 { } -- cgit v1.2.3-70-g09d2