Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / actions / notify.cpp
index e3f837adeabaca6288c79770b4060b2ba3f37b1a..ff117321e0b73d7e0e0b7e30fc6b865cd7085660 100644 (file)
@@ -5,12 +5,12 @@
  *
  */
 
-#include <common/error.h>
-#include <common/macros.h>
-#include <common/mi-lttng.h>
-#include <lttng/action/action-internal.h>
-#include <lttng/action/notify-internal.h>
-#include <lttng/action/rate-policy-internal.h>
+#include <common/error.hpp>
+#include <common/macros.hpp>
+#include <common/mi-lttng.hpp>
+#include <lttng/action/action-internal.hpp>
+#include <lttng/action/notify-internal.hpp>
+#include <lttng/action/rate-policy-internal.hpp>
 #include <lttng/lttng-error.h>
 
 #define IS_NOTIFY_ACTION(action) \
@@ -132,7 +132,7 @@ struct lttng_action *lttng_action_notify_create(void)
        struct lttng_action_notify *notify = NULL;
        struct lttng_action *action = NULL;
 
-       notify = (lttng_action_notify *) zmalloc(sizeof(struct lttng_action_notify));
+       notify = zmalloc<lttng_action_notify>();
        if (!notify) {
                goto end;
        }
This page took 0.024283 seconds and 4 git commands to generate.