From 9e2716b2530c7733b203e0d41d392d696f6c0652 Mon Sep 17 00:00:00 2001 From: Misa Date: Thu, 18 Mar 2021 21:20:05 -0700 Subject: [PATCH] Fix a few missing implicit void arg declarations While working on #535, I noticed that editormenuactionpress() still didn't do the explicit void declaration. Then I ran `rg 'void.*\(\)'` and found three other functions that I somehow missed in #628. Whoops. Well, now they no longer are missed. --- desktop_version/src/Game.cpp | 2 +- desktop_version/src/Graphics.cpp | 2 +- desktop_version/src/Render.cpp | 2 +- desktop_version/src/editor.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop_version/src/Game.cpp b/desktop_version/src/Game.cpp index 1c20cd1e..4579bac5 100644 --- a/desktop_version/src/Game.cpp +++ b/desktop_version/src/Game.cpp @@ -6044,7 +6044,7 @@ bool Game::customsavequick(std::string savfile) } -void Game::loadtele() +void Game::loadtele(void) { tinyxml2::XMLDocument doc; if (!FILESYSTEM_loadTiXml2Document("saves/tsave.vvv", doc)) return; diff --git a/desktop_version/src/Graphics.cpp b/desktop_version/src/Graphics.cpp index af33efc1..569539f1 100644 --- a/desktop_version/src/Graphics.cpp +++ b/desktop_version/src/Graphics.cpp @@ -3237,7 +3237,7 @@ bool Graphics::onscreen(int t) return (t >= -40 && t <= 280); } -void Graphics::reloadresources() +void Graphics::reloadresources(void) { grphx.destroy(); grphx.init(); diff --git a/desktop_version/src/Render.cpp b/desktop_version/src/Render.cpp index 1df3543c..c5f4fcec 100644 --- a/desktop_version/src/Render.cpp +++ b/desktop_version/src/Render.cpp @@ -1166,7 +1166,7 @@ static void menurender(void) } } -void titlerender() +void titlerender(void) { ClearSurface(graphics.backBuffer); diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index 87c93db5..70ce0f6b 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -3680,7 +3680,7 @@ void editorlogic(void) } -static void editormenuactionpress() +static void editormenuactionpress(void) { extern editorclass ed; switch (game.currentmenuname)