[DEBUG] correct [] acces on Object

This commit is contained in:
Edouard DUPIN 2017-09-26 15:46:29 +02:00
parent 9f5b164097
commit f2f692c128
2 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@
#pragma once
#include <etk/types.hpp>
#include <etk/Stream.hpp>
namespace ejson {
/**

View File

@ -207,7 +207,7 @@ bool ejson::internal::Object::iParse(const etk::String& _data, size_t& _pos, ejs
}
}
_pos = _data.size();
if (false == standalone) {
if (standalone == false) {
return true;
}
return false;
@ -301,11 +301,11 @@ size_t ejson::internal::Object::size() const {
}
ememory::SharedPtr<ejson::internal::Value> ejson::internal::Object::get(size_t _id) {
return m_value[_id];
return m_value.getValue(_id);
}
const ememory::SharedPtr<ejson::internal::Value> ejson::internal::Object::get(size_t _id) const{
return m_value[_id];
return m_value.getValue(_id);
}
ememory::SharedPtr<ejson::internal::Value> ejson::internal::Object::get(const etk::String& _name) {