summaryrefslogtreecommitdiff
path: root/src/gui/windows
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/windows
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/gui/windows')
-rw-r--r--src/gui/windows/chatwindow.h4
-rw-r--r--src/gui/windows/connectiondialog.h4
-rw-r--r--src/gui/windows/debugwindow.h4
-rw-r--r--src/gui/windows/equipmentwindow.h4
-rw-r--r--src/gui/windows/minimap.h6
-rw-r--r--src/gui/windows/ministatuswindow.h4
-rw-r--r--src/gui/windows/outfitwindow.h4
7 files changed, 15 insertions, 15 deletions
diff --git a/src/gui/windows/chatwindow.h b/src/gui/windows/chatwindow.h
index c5b5aea1a..ea71e4716 100644
--- a/src/gui/windows/chatwindow.h
+++ b/src/gui/windows/chatwindow.h
@@ -280,9 +280,9 @@ class ChatWindow final : public Window,
void mouseExited(MouseEvent& event A_UNUSED) override final;
- void draw(Graphics* graphics) override final;
+ void draw(Graphics* graphics) override final A_NONNULL(2);
- void safeDraw(Graphics* graphics) override final;
+ void safeDraw(Graphics* graphics) override final A_NONNULL(2);
void updateVisibility();
diff --git a/src/gui/windows/connectiondialog.h b/src/gui/windows/connectiondialog.h
index 6fdeeff00..b7318d79f 100644
--- a/src/gui/windows/connectiondialog.h
+++ b/src/gui/windows/connectiondialog.h
@@ -58,9 +58,9 @@ class ConnectionDialog final : public Window,
*/
void action(const ActionEvent &) override final;
- void draw(Graphics *graphics) override final;
+ void draw(Graphics *graphics) override final A_NONNULL(2);
- void safeDraw(Graphics *graphics) override final;
+ void safeDraw(Graphics *graphics) override final A_NONNULL(2);
private:
State mCancelState;
diff --git a/src/gui/windows/debugwindow.h b/src/gui/windows/debugwindow.h
index 5496852f6..0ccbae3a1 100644
--- a/src/gui/windows/debugwindow.h
+++ b/src/gui/windows/debugwindow.h
@@ -54,9 +54,9 @@ class DebugWindow final : public Window
*/
void slowLogic();
- void draw(Graphics *g) override final;
+ void draw(Graphics *g) override final A_NONNULL(2);
- void safeDraw(Graphics *g) override final;
+ void safeDraw(Graphics *g) override final A_NONNULL(2);
void setPing(int pingTime);
diff --git a/src/gui/windows/equipmentwindow.h b/src/gui/windows/equipmentwindow.h
index 6ad9b2fd2..640aa2564 100644
--- a/src/gui/windows/equipmentwindow.h
+++ b/src/gui/windows/equipmentwindow.h
@@ -70,9 +70,9 @@ class EquipmentWindow final : public Window,
/**
* Draws the equipment window.
*/
- void draw(Graphics *graphics) override final;
+ void draw(Graphics *graphics) override final A_NONNULL(2);
- void safeDraw(Graphics *graphics) override final;
+ void safeDraw(Graphics *graphics) override final A_NONNULL(2);
void action(const ActionEvent &event) override final;
diff --git a/src/gui/windows/minimap.h b/src/gui/windows/minimap.h
index 8c7150080..bd9126bba 100644
--- a/src/gui/windows/minimap.h
+++ b/src/gui/windows/minimap.h
@@ -59,11 +59,11 @@ class Minimap final : public Window, public ConfigListener
/**
* Draws the minimap.
*/
- void draw(Graphics *graphics) override final;
+ void draw(Graphics *graphics) override final A_NONNULL(2);
- void safeDraw(Graphics *graphics) override final;
+ void safeDraw(Graphics *graphics) override final A_NONNULL(2);
- void draw2(Graphics *const graphics);
+ void draw2(Graphics *const graphics) A_NONNULL(2);
void mouseMoved(MouseEvent &event) override final;
diff --git a/src/gui/windows/ministatuswindow.h b/src/gui/windows/ministatuswindow.h
index 0146b3f00..c1a93d6d9 100644
--- a/src/gui/windows/ministatuswindow.h
+++ b/src/gui/windows/ministatuswindow.h
@@ -69,9 +69,9 @@ class MiniStatusWindow final : public Window,
void logic() override final;
- void draw(Graphics *graphics) override final;
+ void draw(Graphics *graphics) override final A_NONNULL(2);
- void safeDraw(Graphics *graphics) override final;
+ void safeDraw(Graphics *graphics) override final A_NONNULL(2);
void mouseMoved(MouseEvent &event) override final;
diff --git a/src/gui/windows/outfitwindow.h b/src/gui/windows/outfitwindow.h
index b27bd7d4a..7033a3f13 100644
--- a/src/gui/windows/outfitwindow.h
+++ b/src/gui/windows/outfitwindow.h
@@ -52,9 +52,9 @@ class OutfitWindow final : public Window,
void action(const ActionEvent &event) override final;
- void draw(Graphics *graphics) override final;
+ void draw(Graphics *graphics) override final A_NONNULL(2);
- void safeDraw(Graphics *graphics) override final;
+ void safeDraw(Graphics *graphics) override final A_NONNULL(2);
void mousePressed(MouseEvent &event) override final;