summaryrefslogtreecommitdiff
path: root/src/resources/map/maplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-24 01:13:26 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-24 01:13:26 +0300
commit1498a699f89f7b5aebdc4629c645c3702ee04f92 (patch)
tree24d74cc7efc31ba2447c76ad301e3192e38b4cf4 /src/resources/map/maplayer.h
parentc551f8981eba838d07245d1597e9deaa00427cee (diff)
downloadmanaverse-1498a699f89f7b5aebdc4629c645c3702ee04f92.tar.gz
manaverse-1498a699f89f7b5aebdc4629c645c3702ee04f92.tar.bz2
manaverse-1498a699f89f7b5aebdc4629c645c3702ee04f92.tar.xz
manaverse-1498a699f89f7b5aebdc4629c645c3702ee04f92.zip
Add A_NONNULL attribute to all parameters with class Graphics.
Diffstat (limited to 'src/resources/map/maplayer.h')
-rw-r--r--src/resources/map/maplayer.h41
1 files changed, 27 insertions, 14 deletions
diff --git a/src/resources/map/maplayer.h b/src/resources/map/maplayer.h
index 4cf30ade1..6588e0303 100644
--- a/src/resources/map/maplayer.h
+++ b/src/resources/map/maplayer.h
@@ -87,30 +87,43 @@ class MapLayer final: public ConfigListener
* layer.
*/
void draw(Graphics *const graphics,
- int startX, int startY, int endX, int endY,
- const int scrollX, const int scrollY) const;
+ int startX,
+ int startY,
+ int endX,
+ int endY,
+ const int scrollX,
+ const int scrollY) const A_NONNULL(2);
- void drawSDL(Graphics *const graphics) const;
+ void drawSDL(Graphics *const graphics) const A_NONNULL(2);
#ifdef USE_OPENGL
- void drawOGL(Graphics *const graphics) const;
+ void drawOGL(Graphics *const graphics) const A_NONNULL(2);
void updateOGL(Graphics *const graphics,
- int startX, int startY,
- int endX, int endY,
- const int scrollX, const int scrollY);
+ int startX,
+ int startY,
+ int endX,
+ int endY,
+ const int scrollX,
+ const int scrollY) A_NONNULL(2);
#endif
void updateSDL(const Graphics *const graphics,
- int startX, int startY,
- int endX, int endY,
- const int scrollX, const int scrollY);
+ int startX,
+ int startY,
+ int endX,
+ int endY,
+ const int scrollX,
+ const int scrollY) A_NONNULL(2);
void drawFringe(Graphics *const graphics,
- int startX, int startY,
- int endX, int endY,
- const int scrollX, const int scrollY,
- const Actors *const actors) const;
+ int startX,
+ int startY,
+ int endX,
+ int endY,
+ const int scrollX,
+ const int scrollY,
+ const Actors *const actors) const A_NONNULL(2);
bool isFringeLayer() const A_WARN_UNUSED
{ return mIsFringeLayer; }