Skip to content

Commit

Permalink
Moved the SDL_Rect ostream operator to the appropriate file
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Dec 10, 2016
1 parent 4dbd219 commit 98cca22
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/gui/widgets/minimap.cpp
Expand Up @@ -23,6 +23,7 @@
#include "gui/widgets/settings.hpp"
#include "map/map.hpp"
#include "map/exception.hpp"
#include "sdl/rect.hpp"
#include "terrain/type_data.hpp"
#include "../../minimap.hpp" // We want the file in src/

Expand Down
1 change: 1 addition & 0 deletions src/gui/widgets/panel.cpp
Expand Up @@ -20,6 +20,7 @@
#include "gui/core/register_widget.hpp"
#include "gui/widgets/settings.hpp"
#include "gettext.hpp"
#include "sdl/rect.hpp"
#include "wml_exception.hpp"

#include "utils/functional.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/gui/widgets/styled_widget.cpp
Expand Up @@ -26,6 +26,7 @@
#include "hotkey/hotkey_item.hpp"
#include "formatter.hpp"
#include "gettext.hpp"
#include "sdl/rect.hpp"
#include "wml_exception.hpp"

#include "utils/functional.hpp"
Expand Down
1 change: 1 addition & 0 deletions src/gui/widgets/tree_view_node.cpp
Expand Up @@ -22,6 +22,7 @@
#include "gui/widgets/toggle_button.hpp"
#include "gui/widgets/toggle_panel.hpp"
#include "gui/widgets/tree_view.hpp"
#include "sdl/rect.hpp"

#include "utils/functional.hpp"

Expand Down
2 changes: 2 additions & 0 deletions src/sdl/rect.hpp
Expand Up @@ -146,4 +146,6 @@ inline void fill_rect(surface& dst, SDL_Rect* dst_rect, const Uint32 color)
bool operator==(const SDL_Rect& a, const SDL_Rect& b);
bool operator!=(const SDL_Rect& a, const SDL_Rect& b);

std::ostream& operator<<(std::ostream& s, const SDL_Rect& rect);

#endif
2 changes: 0 additions & 2 deletions src/sdl/utils.hpp
Expand Up @@ -496,6 +496,4 @@ struct clip_rect_setter
void draw_centered_on_background(surface surf, const SDL_Rect& rect,
const color_t& color, surface target);

std::ostream& operator<<(std::ostream& s, const SDL_Rect& rect);

#endif

0 comments on commit 98cca22

Please sign in to comment.