mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 14:54:33 +00:00
Make List default constructable
This commit is contained in:
parent
4c5389dbac
commit
fdc67777bb
@ -24,6 +24,9 @@
|
||||
|
||||
using namespace realm;
|
||||
|
||||
List::List() noexcept = default;
|
||||
List::~List() = default;
|
||||
|
||||
List::List(std::shared_ptr<Realm> r, const ObjectSchema& s, LinkViewRef l) noexcept
|
||||
: m_realm(std::move(r))
|
||||
, m_object_schema(&s)
|
||||
@ -31,8 +34,6 @@ List::List(std::shared_ptr<Realm> r, const ObjectSchema& s, LinkViewRef l) noexc
|
||||
{
|
||||
}
|
||||
|
||||
List::~List() = default;
|
||||
|
||||
size_t List::size() const
|
||||
{
|
||||
verify_attached();
|
||||
|
@ -32,6 +32,7 @@ class Realm;
|
||||
|
||||
class List {
|
||||
public:
|
||||
List() noexcept;
|
||||
List(std::shared_ptr<Realm> r, const ObjectSchema& s, LinkViewRef l) noexcept;
|
||||
~List();
|
||||
|
||||
@ -61,7 +62,7 @@ public:
|
||||
|
||||
private:
|
||||
std::shared_ptr<Realm> m_realm;
|
||||
const ObjectSchema* m_object_schema;
|
||||
const ObjectSchema* m_object_schema = nullptr;
|
||||
LinkViewRef m_link_view;
|
||||
|
||||
void verify_valid_row(size_t row_ndx, bool insertion = false) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user