clang-cl build fix

This commit is contained in:
Eric Wasylishen 2022-06-14 20:18:06 -06:00
parent 7911782a3b
commit 0c24e7bbd0
2 changed files with 6 additions and 6 deletions

View File

@ -47,7 +47,7 @@ std::string entdict_t::get(const std::string_view &key) const
vec_t entdict_t::get_float(const std::string_view &key) const
{
auto &s = get(key);
auto s = get(key);
if (s.empty()) {
return 0;
@ -63,7 +63,7 @@ vec_t entdict_t::get_float(const std::string_view &key) const
int32_t entdict_t::get_int(const std::string_view &key) const
{
auto &s = get(key);
auto s = get(key);
if (s.empty()) {
return 0;

View File

@ -55,11 +55,11 @@ public:
bool has(const std::string_view &key) const;
inline keyvalues_t::const_iterator entdict_t::begin() const { return keyvalues.begin(); }
inline keyvalues_t::const_iterator entdict_t::end() const { return keyvalues.end(); }
inline keyvalues_t::const_iterator begin() const { return keyvalues.begin(); }
inline keyvalues_t::const_iterator end() const { return keyvalues.end(); }
inline keyvalues_t::iterator entdict_t::begin() { return keyvalues.begin(); }
inline keyvalues_t::iterator entdict_t::end() { return keyvalues.end(); }
inline keyvalues_t::iterator begin() { return keyvalues.begin(); }
inline keyvalues_t::iterator end() { return keyvalues.end(); }
inline size_t size() { return keyvalues.size(); }