Skip to content

Commit

Permalink
Use inherited constructors instead of constructor delegation
Browse files Browse the repository at this point in the history
sf::Exception can use the inheriting constructors functionality instead of a constructor delegating to the parent constructor.

I removed Exception.cpp as it is not needed anymore.
  • Loading branch information
ZXShady authored and ChrisThrasher committed Oct 5, 2024
1 parent 9169e11 commit 72207a6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 46 deletions.
8 changes: 1 addition & 7 deletions include/SFML/System/Exception.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ namespace sf
class SFML_SYSTEM_API Exception : public std::runtime_error
{
public:
////////////////////////////////////////////////////////////
/// \brief Construct with message
///
/// \param message Exception message
///
////////////////////////////////////////////////////////////
explicit Exception(const std::string& message);
using std::runtime_error::runtime_error;
};
} // namespace sf
1 change: 0 additions & 1 deletion src/SFML/System/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ set(SRC
${SRCROOT}/EnumArray.hpp
${SRCROOT}/Err.cpp
${INCROOT}/Err.hpp
${SRCROOT}/Exception.cpp
${INCROOT}/Exception.hpp
${INCROOT}/Export.hpp
${INCROOT}/InputStream.hpp
Expand Down
38 changes: 0 additions & 38 deletions src/SFML/System/Exception.cpp

This file was deleted.

0 comments on commit 72207a6

Please sign in to comment.