Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / event-field-value.cpp
index 7572713137ae810b21eef141e7b57a370ea3907b..3ab12728c769ae9f642fdc236646664e8a49bf1b 100644 (file)
@@ -13,9 +13,9 @@
 #include <stddef.h>
 #include <stdbool.h>
 
-#include <common/error.h>
-#include <common/macros.h>
-#include <lttng/event-field-value-internal.h>
+#include <common/error.hpp>
+#include <common/macros.hpp>
+#include <lttng/event-field-value-internal.hpp>
 
 static
 struct lttng_event_field_value *create_empty_field_val(
@@ -23,7 +23,7 @@ struct lttng_event_field_value *create_empty_field_val(
 {
        struct lttng_event_field_value *field_val;
 
-       field_val = (lttng_event_field_value *) zmalloc(size);
+       field_val = zmalloc<lttng_event_field_value>(size);
        if (!field_val) {
                goto end;
        }
This page took 0.02509 seconds and 4 git commands to generate.