Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / event-expr / event-expr.cpp
index e80fb1d5df4d269627847bb0ccb74f7d246fb666..1b592bdb121cf54fbc5d8f3204e9c9be0512994a 100644 (file)
 #define _LGPL_SOURCE
 #include <stddef.h>
 
-#include <common/bytecode/bytecode.h>
-#include <common/error.h>
-#include <common/macros.h>
-#include <common/mi-lttng.h>
-#include <lttng/event-expr-internal.h>
+#include <common/bytecode/bytecode.hpp>
+#include <common/error.hpp>
+#include <common/macros.hpp>
+#include <common/mi-lttng.hpp>
+#include <lttng/event-expr-internal.hpp>
 #include <lttng/event-expr.h>
 #include <stdio.h>
 
@@ -40,7 +40,7 @@ struct lttng_event_expr *create_empty_expr(enum lttng_event_expr_type type,
 {
        struct lttng_event_expr *expr;
 
-       expr = (lttng_event_expr *) zmalloc(size);
+       expr = zmalloc<lttng_event_expr>(size);
        if (!expr) {
                goto end;
        }
This page took 0.027726 seconds and 4 git commands to generate.