From d2a74958f0d74ac36e2747e910d8f6aaa7790b84 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 --- src/object-store/object_schema.cpp | 4 ++++ src/object-store/object_schema.hpp | 6 +++--- src/object-store/object_store.hpp | 1 + 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/object-store/object_schema.cpp b/src/object-store/object_schema.cpp index 83edd1f1..41e34685 100644 --- a/src/object-store/object_schema.cpp +++ b/src/object-store/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/src/object-store/object_schema.hpp b/src/object-store/object_schema.hpp index 56a14d17..51a4c584 100644 --- a/src/object-store/object_schema.hpp +++ b/src/object-store/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/src/object-store/object_store.hpp b/src/object-store/object_store.hpp index cacdcd8b..86bbe3ff 100644 --- a/src/object-store/object_store.hpp +++ b/src/object-store/object_store.hpp @@ -26,6 +26,7 @@ #include #include "object_schema.hpp" +#include "property.hpp" namespace realm { class ObjectSchemaValidationException;