Skip to content
Snippets Groups Projects
Verified Commit 5b7c9a49 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

BUG: Fix missing virtual destructor

parent 632dec3d
No related branches found
No related tags found
1 merge request!25F cpp to string
Pipeline #13916 passed
Pipeline: caosdb-cppinttest

#13917

    ......@@ -44,6 +44,7 @@ auto get_arena() -> Arena *;
    template <typename P> class ProtoMessageWrapper {
    public:
    virtual ~ProtoMessageWrapper() = 0;
    ProtoMessageWrapper(const ProtoMessageWrapper<P> &other) = default;
    inline auto CopyFrom(const ProtoMessageWrapper<P> &other) noexcept -> StatusCode {
    this->wrapped->CopyFrom(*other.wrapped);
    ......@@ -86,8 +87,11 @@ protected:
    P *wrapped;
    };
    template <typename P> ProtoMessageWrapper<P>::~ProtoMessageWrapper() = default;
    template <typename P> class ScalarFieldWrapper : public ProtoMessageWrapper<P> {
    public:
    inline virtual ~ScalarFieldWrapper() = default;
    inline ScalarFieldWrapper() = default;
    inline ScalarFieldWrapper(P *wrapped) : ProtoMessageWrapper<P>(wrapped) {}
    /**
    ......
    ......@@ -439,10 +439,7 @@ TEST(test_entity, test_remove_property) {
    // P0,P1,P2,P3,P4,P5,P6,P7,P8,P9
    // ^
    // P0,P1,P2, P4,P5,P6,P7,P8,P9
    CAOSDB_LOG_WARN(logger_name) << "REMOVE(3)!!!!!!!!!!!!!!!!!!!!!";
    CAOSDB_LOG_WARN(logger_name) << entity.GetProperties().ToString();
    entity.RemoveProperty(3);
    CAOSDB_LOG_WARN(logger_name) << entity.GetProperties().ToString();
    ASSERT_EQ(entity.GetProperties().size(), 9);
    for (int i = 0; i < 3; i++) {
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment