diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-24 01:13:26 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-24 01:13:26 +0300 |
commit | 1498a699f89f7b5aebdc4629c645c3702ee04f92 (patch) | |
tree | 24d74cc7efc31ba2447c76ad301e3192e38b4cf4 /src/resources/map/map.h | |
parent | c551f8981eba838d07245d1597e9deaa00427cee (diff) | |
download | manaverse-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/map.h')
-rw-r--r-- | src/resources/map/map.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/resources/map/map.h b/src/resources/map/map.h index 28bf9c4b2..4553f5aa8 100644 --- a/src/resources/map/map.h +++ b/src/resources/map/map.h @@ -109,14 +109,17 @@ class Map final : public Properties, public ConfigListener * the clipping rectangle set on the Graphics object. However, * currently the map is always drawn full-screen. */ - void draw(Graphics *const graphics, int scrollX, int scrollY); + void draw(Graphics *const graphics, + int scrollX, + int scrollY) A_NONNULL(2); /** * Visualizes collision layer for debugging */ void drawCollision(Graphics *const graphics, - const int scrollX, const int scrollY, - const MapTypeT drawFlags) const; + const int scrollX, + const int scrollY, + const MapTypeT drawFlags) const A_NONNULL(2); /** * Adds a layer to this map. The map takes ownership of the layer. @@ -357,8 +360,9 @@ class Map final : public Properties, public ConfigListener /** * Draws the foreground or background layers to the given graphics output. */ - void drawAmbientLayers(Graphics *const graphics, const LayerType type, - const int detail) const; + void drawAmbientLayers(Graphics *const graphics, + const LayerType type, + const int detail) const A_NONNULL(2); /** * Tells whether the given coordinates fall within the map boundaries. |