summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-27 21:47:11 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-27 21:47:11 +0300
commit610b13d188cd3faf99b971eea58594b336a57edd (patch)
treea63c21502fb067dba90cfc31343de6b90032487c /src
parent8b5ea7b5dadf697086b35b386f79d7b69d5e9215 (diff)
downloadplus-610b13d188cd3faf99b971eea58594b336a57edd.tar.gz
plus-610b13d188cd3faf99b971eea58594b336a57edd.tar.bz2
plus-610b13d188cd3faf99b971eea58594b336a57edd.tar.xz
plus-610b13d188cd3faf99b971eea58594b336a57edd.zip
Add checks for new issues from paranucker.
Diffstat (limited to 'src')
-rw-r--r--src/being/actorsprite.cpp3
-rw-r--r--src/being/actorsprite.h2
-rw-r--r--src/gui/widgets/serverslistbox.h2
-rw-r--r--src/gui/widgets/skilllistbox.h2
-rw-r--r--src/gui/windowmenu.h4
-rw-r--r--src/gui/windows/ministatuswindow.h2
6 files changed, 8 insertions, 7 deletions
diff --git a/src/being/actorsprite.cpp b/src/being/actorsprite.cpp
index 6f213903e..4b9a4b61a 100644
--- a/src/being/actorsprite.cpp
+++ b/src/being/actorsprite.cpp
@@ -96,7 +96,8 @@ ActorSprite::~ActorSprite()
}
void ActorSprite::draw1(Graphics *const graphics,
- const int offsetX, const int offsetY) const
+ const int offsetX,
+ const int offsetY) const
{
FUNC_BLOCK("ActorSprite::draw1", 1)
if (mUsedTargetCursor)
diff --git a/src/being/actorsprite.h b/src/being/actorsprite.h
index 72ceb2f84..f6119bbef 100644
--- a/src/being/actorsprite.h
+++ b/src/being/actorsprite.h
@@ -70,7 +70,7 @@ class ActorSprite notfinal : public CompoundSprite, public Actor
void draw1(Graphics *const graphics,
const int offsetX,
- const int offsetY) const;
+ const int offsetY) const A_NONNULL(2);
virtual void logic();
diff --git a/src/gui/widgets/serverslistbox.h b/src/gui/widgets/serverslistbox.h
index e15bebb41..6b03513dd 100644
--- a/src/gui/widgets/serverslistbox.h
+++ b/src/gui/widgets/serverslistbox.h
@@ -140,7 +140,7 @@ class ServersListBox final : public ListBox
}
}
- void safeDraw(Graphics *graphics) override final
+ void safeDraw(Graphics *graphics) override final A_NONNULL(2)
{
ServersListBox::draw(graphics);
}
diff --git a/src/gui/widgets/skilllistbox.h b/src/gui/widgets/skilllistbox.h
index a27c57147..b8aa3f3c5 100644
--- a/src/gui/widgets/skilllistbox.h
+++ b/src/gui/widgets/skilllistbox.h
@@ -174,7 +174,7 @@ class SkillListBox final : public ListBox
}
}
- void safeDraw(Graphics *graphics) override final
+ void safeDraw(Graphics *graphics) override final A_NONNULL(2)
{
SkillListBox::draw(graphics);
}
diff --git a/src/gui/windowmenu.h b/src/gui/windowmenu.h
index f5f0b1c7d..38ffe2e76 100644
--- a/src/gui/windowmenu.h
+++ b/src/gui/windowmenu.h
@@ -87,9 +87,9 @@ class WindowMenu final : public Container,
#endif
protected:
- void drawChildren(Graphics* graphics) override final;
+ void drawChildren(Graphics* graphics) override final A_NONNULL(2);
- void safeDrawChildren(Graphics* graphics) override final;
+ void safeDrawChildren(Graphics* graphics) override final A_NONNULL(2);
private:
inline void addButton(const char *const text,
diff --git a/src/gui/windows/ministatuswindow.h b/src/gui/windows/ministatuswindow.h
index c1a93d6d9..fa4ca6aec 100644
--- a/src/gui/windows/ministatuswindow.h
+++ b/src/gui/windows/ministatuswindow.h
@@ -63,7 +63,7 @@ class MiniStatusWindow final : public Window,
void eraseIcon(const int index);
- void drawIcons(Graphics *const graphics);
+ void drawIcons(Graphics *const graphics) A_NONNULL(2);
void updateStatus() override final;