This commit is contained in:
Ari Lazier 2016-04-26 16:59:03 -07:00
parent cec8667e35
commit 6e93d85420
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ namespace realm {
SharedRealm realm() { return m_realm; } SharedRealm realm() { return m_realm; }
const ObjectSchema &get_object_schema() { return *m_object_schema; } const ObjectSchema &get_object_schema() { return *m_object_schema; }
Row row() { return m_row; } Row row() { return m_row; }
bool is_valid() const { return m_row.is_attached(); } bool is_valid() const { return m_row.is_attached(); }
private: private:
@ -147,7 +147,7 @@ namespace realm {
// //
template <typename ValueType, typename ContextType> template <typename ValueType, typename ContextType>
inline void Object::set_property_value(ContextType ctx, std::string prop_name, ValueType value, bool try_update) inline void Object::set_property_value(ContextType ctx, std::string prop_name, ValueType value, bool try_update)
{ {
const Property *prop = m_object_schema->property_for_name(prop_name); const Property *prop = m_object_schema->property_for_name(prop_name);
if (!prop) { if (!prop) {
throw InvalidPropertyException(m_object_schema->name, prop_name, throw InvalidPropertyException(m_object_schema->name, prop_name,