diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-03 13:33:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-03 13:33:43 +0300 |
commit | 757df49cbbce33bba23ec0d642da3901f3ec5bbd (patch) | |
tree | 4d3d49a544c070e120e95e0007b19d79657eb9a9 /src | |
parent | 8b2464a723f7039a3efbc0c7d2e883729b3fa7dd (diff) | |
download | plus-757df49cbbce33bba23ec0d642da3901f3ec5bbd.tar.gz plus-757df49cbbce33bba23ec0d642da3901f3ec5bbd.tar.bz2 plus-757df49cbbce33bba23ec0d642da3901f3ec5bbd.tar.xz plus-757df49cbbce33bba23ec0d642da3901f3ec5bbd.zip |
add missing consts.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/windows/setupwindow.cpp | 2 | ||||
-rw-r--r-- | src/gui/windows/setupwindow.h | 2 | ||||
-rw-r--r-- | src/resources/imagehelper.h | 2 | ||||
-rw-r--r-- | src/resources/openglimagehelper.cpp | 2 | ||||
-rw-r--r-- | src/resources/openglimagehelper.h | 2 | ||||
-rw-r--r-- | src/resources/sdl2imagehelper.cpp | 2 | ||||
-rw-r--r-- | src/resources/sdl2imagehelper.h | 2 | ||||
-rw-r--r-- | src/resources/sdlimagehelper.cpp | 2 | ||||
-rw-r--r-- | src/resources/sdlimagehelper.h | 2 |
9 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/windows/setupwindow.cpp b/src/gui/windows/setupwindow.cpp index 9dfb675d8..df1fe7f28 100644 --- a/src/gui/windows/setupwindow.cpp +++ b/src/gui/windows/setupwindow.cpp @@ -244,7 +244,7 @@ void SetupWindow::registerWindowForReset(Window *const window) mWindowsToReset.push_back(window); } -void SetupWindow::unregisterWindowForReset(Window *const window) +void SetupWindow::unregisterWindowForReset(const Window *const window) { FOR_EACH (std::list<Window*>::iterator, it, mWindowsToReset) { diff --git a/src/gui/windows/setupwindow.h b/src/gui/windows/setupwindow.h index d386b365e..7ce19e08e 100644 --- a/src/gui/windows/setupwindow.h +++ b/src/gui/windows/setupwindow.h @@ -62,7 +62,7 @@ class SetupWindow final : public Window, void registerWindowForReset(Window *const window); - void unregisterWindowForReset(Window *const window); + void unregisterWindowForReset(const Window *const window); void hideWindows(); diff --git a/src/resources/imagehelper.h b/src/resources/imagehelper.h index b7080ee4b..389fc0a60 100644 --- a/src/resources/imagehelper.h +++ b/src/resources/imagehelper.h @@ -79,7 +79,7 @@ class ImageHelper notfinal int height) const A_WARN_UNUSED; - virtual void copySurfaceToImage(Image *const image A_UNUSED, + virtual void copySurfaceToImage(const Image *const image A_UNUSED, const int x A_UNUSED, const int y A_UNUSED, SDL_Surface *const surface A_UNUSED) diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp index c830c6321..a51055842 100644 --- a/src/resources/openglimagehelper.cpp +++ b/src/resources/openglimagehelper.cpp @@ -378,7 +378,7 @@ void OpenGLImageHelper::invalidate(const GLuint textureId) } } -void OpenGLImageHelper::copySurfaceToImage(Image *const image, +void OpenGLImageHelper::copySurfaceToImage(const Image *const image, const int x, const int y, SDL_Surface *surface) const { diff --git a/src/resources/openglimagehelper.h b/src/resources/openglimagehelper.h index 8d9560642..3edc528ac 100644 --- a/src/resources/openglimagehelper.h +++ b/src/resources/openglimagehelper.h @@ -125,7 +125,7 @@ class OpenGLImageHelper final : public ImageHelper void postInit() override final; - void copySurfaceToImage(Image *const image, + void copySurfaceToImage(const Image *const image, const int x, const int y, SDL_Surface *surface) const; diff --git a/src/resources/sdl2imagehelper.cpp b/src/resources/sdl2imagehelper.cpp index 12e975ae6..da8575ed6 100644 --- a/src/resources/sdl2imagehelper.cpp +++ b/src/resources/sdl2imagehelper.cpp @@ -94,7 +94,7 @@ int SDLImageHelper::combineSurface(SDL_Surface *restrict const src, return 1; } -void SDLImageHelper::copySurfaceToImage(Image *const image, +void SDLImageHelper::copySurfaceToImage(const Image *const image, const int x, const int y, SDL_Surface *const surface) const { diff --git a/src/resources/sdl2imagehelper.h b/src/resources/sdl2imagehelper.h index f59a6bee1..31cb15130 100644 --- a/src/resources/sdl2imagehelper.h +++ b/src/resources/sdl2imagehelper.h @@ -62,7 +62,7 @@ class SDLImageHelper final : public ImageHelper const float alpha) override final A_WARN_UNUSED; - void copySurfaceToImage(Image *const image, + void copySurfaceToImage(const Image *const image, const int x, const int y, SDL_Surface *const surface) const override final; diff --git a/src/resources/sdlimagehelper.cpp b/src/resources/sdlimagehelper.cpp index 2f9594487..b4e7007f6 100644 --- a/src/resources/sdlimagehelper.cpp +++ b/src/resources/sdlimagehelper.cpp @@ -284,7 +284,7 @@ int SDLImageHelper::combineSurface(SDL_Surface *restrict const src, return SDL_gfxBlitRGBA(src, srcrect, dst, dstrect); } -void SDLImageHelper::copySurfaceToImage(Image *const image, +void SDLImageHelper::copySurfaceToImage(const Image *const image, const int x, const int y, SDL_Surface *const surface) const { diff --git a/src/resources/sdlimagehelper.h b/src/resources/sdlimagehelper.h index 9ab12368f..01e584a6a 100644 --- a/src/resources/sdlimagehelper.h +++ b/src/resources/sdlimagehelper.h @@ -74,7 +74,7 @@ class SDLImageHelper final : public ImageHelper const float alpha) override final A_WARN_UNUSED; - void copySurfaceToImage(Image *const image, + void copySurfaceToImage(const Image *const image, const int x, const int y, SDL_Surface *const surface) const override final; |