diff --git a/slsSupportLib/include/sls/StaticVector.h b/slsSupportLib/include/sls/StaticVector.h index cf72aa05d..931ea17fa 100644 --- a/slsSupportLib/include/sls/StaticVector.h +++ b/slsSupportLib/include/sls/StaticVector.h @@ -113,10 +113,12 @@ template class StaticVector { // auto begin() noexcept -> decltype(data_.begin()) { return data_.begin(); // } const_iterator begin() const noexcept { return data_.begin(); } - iterator end() noexcept { return data_.begin()+current_size; } - const_iterator end() const noexcept { return data_.begin()+current_size; } + iterator end() noexcept { return data_.begin() + current_size; } + const_iterator end() const noexcept { return data_.begin() + current_size; } const_iterator cbegin() const noexcept { return data_.cbegin(); } - const_iterator cend() const noexcept { return data_.cbegin()+current_size; } + const_iterator cend() const noexcept { + return data_.cbegin() + current_size; + } void size_check(size_type s) const { if (s > Capacity) { diff --git a/slsSupportLib/include/sls/versionAPI.h b/slsSupportLib/include/sls/versionAPI.h index 0453a3846..d88a71ba8 100644 --- a/slsSupportLib/include/sls/versionAPI.h +++ b/slsSupportLib/include/sls/versionAPI.h @@ -10,4 +10,3 @@ #define APIXILINXCTB "0.0.0 0x250523" #define APIJUNGFRAU "0.0.0 0x250523" #define APIMYTHEN3 "0.0.0 0x250523" - diff --git a/slsSupportLib/src/ToString.cpp b/slsSupportLib/src/ToString.cpp index 1e109d9b1..212514f6f 100644 --- a/slsSupportLib/src/ToString.cpp +++ b/slsSupportLib/src/ToString.cpp @@ -5,12 +5,7 @@ namespace sls { - -std::string ToString(bool value) { - return value ? "1" : "0"; -} - - +std::string ToString(bool value) { return value ? "1" : "0"; } std::string ToString(const slsDetectorDefs::xy &coord) { std::ostringstream oss; diff --git a/slsSupportLib/tests/test-StaticVector.cpp b/slsSupportLib/tests/test-StaticVector.cpp index 2ff548fce..fc40f1a0f 100644 --- a/slsSupportLib/tests/test-StaticVector.cpp +++ b/slsSupportLib/tests/test-StaticVector.cpp @@ -8,15 +8,12 @@ #include #include - using sls::StaticVector; TEST_CASE("StaticVector is a container") { REQUIRE(sls::is_container>::value == true); } - - TEST_CASE("Comparing StaticVector containers") { StaticVector a{0, 1, 2}; StaticVector b{0, 1, 2}; @@ -344,4 +341,3 @@ TEST_CASE("StaticVector stream") { oss << vec; REQUIRE(oss.str() == "[33, 85667, 2]"); } - diff --git a/slsSupportLib/tests/test-ToString.cpp b/slsSupportLib/tests/test-ToString.cpp index 4232169eb..76ee87245 100644 --- a/slsSupportLib/tests/test-ToString.cpp +++ b/slsSupportLib/tests/test-ToString.cpp @@ -26,7 +26,6 @@ TEST_CASE("Convert string to bool", "[support]") { REQUIRE(StringTo("0") == false); } - TEST_CASE("Integer conversions", "[support]") { REQUIRE(ToString(0) == "0"); REQUIRE(ToString(1) == "1");