From 4be81d3588a6d00a89302bb181c6b0de33f13065 Mon Sep 17 00:00:00 2001 From: Zachary Michaels Date: Sat, 3 Feb 2018 09:16:33 -0800 Subject: [PATCH] Remove unnecessary semicolons --- include/internal/catch_decomposer.h | 4 ++-- include/internal/catch_tostring.h | 4 ++-- include/reporters/catch_reporter_junit.cpp | 2 +- projects/SelfTest/TestMain.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/internal/catch_decomposer.h b/include/internal/catch_decomposer.h index 4fe15c4a..618a2509 100644 --- a/include/internal/catch_decomposer.h +++ b/include/internal/catch_decomposer.h @@ -82,7 +82,7 @@ namespace Catch { // Specialised comparison functions to handle equality comparisons between ints and pointers (NULL deduces as an int) template - auto compareEqual( LhsT const& lhs, RhsT const& rhs ) -> bool { return static_cast(lhs == rhs); }; + auto compareEqual( LhsT const& lhs, RhsT const& rhs ) -> bool { return static_cast(lhs == rhs); } template auto compareEqual( T* const& lhs, int rhs ) -> bool { return lhs == reinterpret_cast( rhs ); } template @@ -93,7 +93,7 @@ namespace Catch { auto compareEqual( long lhs, T* const& rhs ) -> bool { return reinterpret_cast( lhs ) == rhs; } template - auto compareNotEqual( LhsT const& lhs, RhsT&& rhs ) -> bool { return static_cast(lhs != rhs); }; + auto compareNotEqual( LhsT const& lhs, RhsT&& rhs ) -> bool { return static_cast(lhs != rhs); } template auto compareNotEqual( T* const& lhs, int rhs ) -> bool { return lhs != reinterpret_cast( rhs ); } template diff --git a/include/internal/catch_tostring.h b/include/internal/catch_tostring.h index 9ca5d6e8..1e644a93 100644 --- a/include/internal/catch_tostring.h +++ b/include/internal/catch_tostring.h @@ -63,11 +63,11 @@ namespace Catch { template typename std::enable_if::value, std::string>::type convertUnstreamable( T const& ) { return Detail::unprintableString; - }; + } template typename std::enable_if::value, std::string>::type convertUnstreamable( T const& value ) { return convertUnknownEnumToString( value ); - }; + } } // namespace Detail diff --git a/include/reporters/catch_reporter_junit.cpp b/include/reporters/catch_reporter_junit.cpp index 541a18b5..d133b700 100644 --- a/include/reporters/catch_reporter_junit.cpp +++ b/include/reporters/catch_reporter_junit.cpp @@ -64,7 +64,7 @@ namespace Catch { m_reporterPrefs.shouldRedirectStdOut = true; } - JunitReporter::~JunitReporter() {}; + JunitReporter::~JunitReporter() {} std::string JunitReporter::getDescription() { return "Reports test results in an XML format that looks like Ant's junitreport target"; diff --git a/projects/SelfTest/TestMain.cpp b/projects/SelfTest/TestMain.cpp index 9b7c1c21..1c023ce9 100644 --- a/projects/SelfTest/TestMain.cpp +++ b/projects/SelfTest/TestMain.cpp @@ -29,5 +29,5 @@ CATCH_REGISTER_TAG_ALIAS( "[@tricky]", "[tricky]~[.]" ) struct TestListener : Catch::TestEventListenerBase { using TestEventListenerBase::TestEventListenerBase; // inherit constructor }; -CATCH_REGISTER_LISTENER( TestListener ); +CATCH_REGISTER_LISTENER( TestListener )