diff --git a/examples/event_handling/EventHandling.cpp b/examples/event_handling/EventHandling.cpp index d033e38d7..84ffe51d2 100644 --- a/examples/event_handling/EventHandling.cpp +++ b/examples/event_handling/EventHandling.cpp @@ -11,7 +11,7 @@ namespace std::string vec2ToString(const sf::Vector2i vec2) { return '(' + std::to_string(vec2.x) + ", " + std::to_string(vec2.y) + ')'; -}; +} } // namespace diff --git a/examples/island/Island.cpp b/examples/island/Island.cpp index 11982309f..b3c7eef5e 100644 --- a/examples/island/Island.cpp +++ b/examples/island/Island.cpp @@ -252,7 +252,7 @@ sf::Vertex computeVertex(sf::Vector2u position) getElevation(position + sf::Vector2u(0, 1)), getElevation(position - sf::Vector2u(0, 1))); return vertex; -}; +} ////////////////////////////////////////////////////////////