common: replace container_of with a C++ safe implementation
[lttng-tools.git] / src / common / trigger.cpp
index 8e6f0734e8c811c7cf4ed9e5e1b64f92d1a8c7ae..161c1abee7654f4ad5a00852f8e5fd53c2353302 100644 (file)
@@ -112,7 +112,7 @@ const struct lttng_action *lttng_trigger_get_const_action(
 static void trigger_destroy_ref(struct urcu_ref *ref)
 {
        struct lttng_trigger *trigger =
-                       container_of(ref, struct lttng_trigger, ref);
+                       lttng::utils::container_of(ref, &lttng_trigger::ref);
        struct lttng_action *action = lttng_trigger_get_action(trigger);
        struct lttng_condition *condition =
                        lttng_trigger_get_condition(trigger);
This page took 0.02405 seconds and 4 git commands to generate.