Style fixes.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-05-31 16:40:33 +02:00
parent b7f1812153
commit bfe1fcc805
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
4 changed files with 20 additions and 20 deletions

View File

@ -1,5 +1,4 @@
#include "ConstString.hpp" #include "ConstString.hpp"
ArbUt::__ConstStringCharHolder* ArbUt::CaseInsensitiveConstString::__emptyString = ArbUt::__ConstStringCharHolder* ArbUt::CaseInsensitiveConstString::__emptyString = new __ConstStringCharHolder("", 0);
new __ConstStringCharHolder("", 0);
ArbUt::__ConstStringCharHolder* ArbUt::ConstString::__emptyString = new __ConstStringCharHolder("", 0); ArbUt::__ConstStringCharHolder* ArbUt::ConstString::__emptyString = new __ConstStringCharHolder("", 0);

View File

@ -66,7 +66,6 @@ namespace ArbUt {
const std::vector<ValueT*>& GetStdList() const { return _vector; } const std::vector<ValueT*>& GetStdList() const { return _vector; }
std::vector<ValueT*>& GetStdList() { return _vector; } std::vector<ValueT*>& GetStdList() { return _vector; }
}; };
} }

View File

@ -33,8 +33,10 @@ TEST_CASE("Create Unique Ptr list, append, iterate"){
REQUIRE(ls.Count() == 2); REQUIRE(ls.Count() == 2);
auto i = 0; auto i = 0;
for (const auto& v : ls) { for (const auto& v : ls) {
if (i == 0) CHECK(v == v1); if (i == 0)
else if (i == 1) CHECK(v == v2); CHECK(v == v1);
else if (i == 1)
CHECK(v == v2);
i++; i++;
} }
} }