Skip to content

Commit

Permalink
Add missing virtual dtor
Browse files Browse the repository at this point in the history
  • Loading branch information
leemaguire committed Apr 26, 2024
1 parent 0797c44 commit d5d21f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions include/cpprealm/internal/bridge/object.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ namespace realm::internal::bridge {
#endif
};
struct collection_change_callback {
virtual ~collection_change_callback() {}
virtual void before(collection_change_set const& c) = 0;
virtual void after(collection_change_set const& c) = 0;
};
Expand Down
2 changes: 1 addition & 1 deletion include/cpprealm/observation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace realm {
: block(std::move(b)), object(*obj), m_object(internal_object) {
static_cast<void>(obj);
}
std::function<void(object_change < T > )> block;
std::function<void(object_change<T>)> block;
const T object;
std::shared_ptr<internal::bridge::object> m_object;

Expand Down

0 comments on commit d5d21f0

Please sign in to comment.