Skip to content

Commit

Permalink
Remove some header includes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vankata453 committed Jul 27, 2023
1 parent 9a9d115 commit c0ba8e5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/supertux/menu/sorted_contrib_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

#include "gui/item_action.hpp"
#include "supertux/levelset.hpp"
#include "supertux/world.hpp"
#include "util/file_system.hpp"
#include "util/gettext.hpp"

Expand Down
2 changes: 2 additions & 0 deletions src/supertux/menu/sorted_contrib_menu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

#include "supertux/menu/world_preview_menu.hpp"

class World;

class SortedContribMenu final : public WorldPreviewMenu
{
public:
Expand Down
5 changes: 3 additions & 2 deletions src/supertux/menu/world_preview_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@
#include "gui/menu_item.hpp"
#include "supertux/game_manager.hpp"
#include "supertux/gameconfig.hpp"
#include "supertux/resources.hpp"
#include "supertux/menu/contrib_levelset_menu.hpp"
#include "supertux/resources.hpp"
#include "supertux/world.hpp"
#include "util/file_system.hpp"
#include "video/drawing_context.hpp"
#include "video/surface.hpp"
Expand All @@ -35,7 +36,7 @@ WorldPreviewMenu::WorldPreviewMenu() :
}

ItemAction*
WorldPreviewMenu::add_world(std::string title, std::string folder,
WorldPreviewMenu::add_world(const std::string& title, const std::string& folder,
SurfacePtr preview, Savegame::Progress progress)
{
ItemAction& item = add_entry(static_cast<int>(m_world_entries.size()), title);
Expand Down
5 changes: 2 additions & 3 deletions src/supertux/menu/world_preview_menu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,9 @@
#include "gui/menu.hpp"

#include "supertux/savegame.hpp"
#include "supertux/world.hpp"
#include "video/surface_ptr.hpp"

/* Represents a menu that should show world preview screenshots and progress. */
/** Represents a menu, which shows world preview screenshots and progress. */
class WorldPreviewMenu : public Menu
{
public:
Expand All @@ -32,7 +31,7 @@ class WorldPreviewMenu : public Menu
void menu_action(MenuItem& item) override;

protected:
ItemAction* add_world(std::string title, std::string folder,
ItemAction* add_world(const std::string& title, const std::string& folder,
SurfacePtr preview = nullptr, Savegame::Progress progress = { -1, -1 });

SurfacePtr find_preview(const std::string& preview_file, const std::string& basedir);
Expand Down

0 comments on commit c0ba8e5

Please sign in to comment.