From bf3d9bd45263ad35f7980d07cfb2234c848070d6 Mon Sep 17 00:00:00 2001 From: Thomas Goyne Date: Wed, 26 Aug 2015 14:53:39 -0700 Subject: [PATCH] Remove property.hpp include from object_schema.hpp --- object_schema.cpp | 4 ++++ object_schema.hpp | 6 +++--- object_store.hpp | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/object_schema.cpp b/object_schema.cpp index 83edd1f1..41e34685 100644 --- a/object_schema.cpp +++ b/object_schema.cpp @@ -17,13 +17,17 @@ //////////////////////////////////////////////////////////////////////////// #include "object_schema.hpp" + #include "object_store.hpp" +#include "property.hpp" #include #include using namespace realm; +ObjectSchema::~ObjectSchema() = default; + ObjectSchema::ObjectSchema(Group *group, const std::string &name) : name(name) { TableRef tableRef = ObjectStore::table_for_object_type(group, name); Table *table = tableRef.get(); diff --git a/object_schema.hpp b/object_schema.hpp index 56a14d17..51a4c584 100644 --- a/object_schema.hpp +++ b/object_schema.hpp @@ -22,14 +22,14 @@ #include #include -#include "property.hpp" - namespace realm { + class Property; class Group; class ObjectSchema { public: - ObjectSchema() {} + ObjectSchema() = default; + ~ObjectSchema(); // create object schema from existing table // if no table is provided it is looked up in the group diff --git a/object_store.hpp b/object_store.hpp index cacdcd8b..86bbe3ff 100644 --- a/object_store.hpp +++ b/object_store.hpp @@ -26,6 +26,7 @@ #include #include "object_schema.hpp" +#include "property.hpp" namespace realm { class ObjectSchemaValidationException;