summaryrefslogtreecommitdiff
path: root/src/gui/widgets/widget.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/gui/widgets/widget.h
parentc551f8981eba838d07245d1597e9deaa00427cee (diff)
downloadplus-1498a699f89f7b5aebdc4629c645c3702ee04f92.tar.gz
plus-1498a699f89f7b5aebdc4629c645c3702ee04f92.tar.bz2
plus-1498a699f89f7b5aebdc4629c645c3702ee04f92.tar.xz
plus-1498a699f89f7b5aebdc4629c645c3702ee04f92.zip
Add A_NONNULL attribute to all parameters with class Graphics.
Diffstat (limited to 'src/gui/widgets/widget.h')
-rw-r--r--src/gui/widgets/widget.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/widgets/widget.h b/src/gui/widgets/widget.h
index 416782dc2..c5573b404 100644
--- a/src/gui/widgets/widget.h
+++ b/src/gui/widgets/widget.h
@@ -121,9 +121,9 @@ class Widget notfinal : public Widget2
* @param graphics aA graphics object to draw with.
* @since 0.1.0
*/
- virtual void draw(Graphics* graphics) = 0;
+ virtual void draw(Graphics* graphics) A_NONNULL(2) = 0;
- virtual void safeDraw(Graphics* graphics) = 0;
+ virtual void safeDraw(Graphics* graphics) A_NONNULL(2) = 0;
/**
* Called when a widget is given a chance to draw a frame around itself.
@@ -145,10 +145,10 @@ class Widget notfinal : public Widget2
* @see setFrameSize, getFrameSize
* @since 0.8.0
*/
- virtual void drawFrame(Graphics* graphics A_UNUSED)
+ virtual void drawFrame(Graphics* graphics A_UNUSED) A_NONNULL(2)
{ }
- virtual void safeDrawFrame(Graphics* graphics A_UNUSED)
+ virtual void safeDrawFrame(Graphics* graphics A_UNUSED) A_NONNULL(2)
{ }
/**