Style fixes.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-05-31 16:40:33 +02:00
parent b7f1812153
commit bfe1fcc805
4 changed files with 20 additions and 20 deletions

View File

@@ -1,5 +1,4 @@
#include "ConstString.hpp"
ArbUt::__ConstStringCharHolder* ArbUt::CaseInsensitiveConstString::__emptyString =
new __ConstStringCharHolder("", 0);
ArbUt::__ConstStringCharHolder* ArbUt::CaseInsensitiveConstString::__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; }
std::vector<ValueT*>& GetStdList() { return _vector; }
};
}

View File

@@ -8,7 +8,7 @@
#endif
#define ConstStringCore(name, hashFunction) \
namespace ArbUt { \
namespace ArbUt { \
class name { \
private: \
__ConstStringCharHolder* _str; \
@@ -112,11 +112,11 @@
} \
\
namespace std { \
template <> struct hash<ArbUt::name> { \
constexpr std::size_t operator()(ArbUt::name const& s) const noexcept { return s.GetHash(); } \
template <> struct hash<ArbUt::name> { \
constexpr std::size_t operator()(ArbUt::name const& s) const noexcept { return s.GetHash(); } \
}; \
template <> struct hash<ArbUt::name##_Literal> { \
constexpr std::size_t operator()(ArbUt::name##_Literal const& s) const noexcept { return s.GetHash(); } \
template <> struct hash<ArbUt::name##_Literal> { \
constexpr std::size_t operator()(ArbUt::name##_Literal const& s) const noexcept { return s.GetHash(); } \
}; \
}