Add type-checked versions of allocation and deallocations functions
[lttng-tools.git] / src / common / location.cpp
index 80c4b4d554dff7fb1f354497040c2c20f40d1259..65c0412402a42d2dca6a4f99727293f88c58795f 100644 (file)
@@ -5,10 +5,10 @@
  *
  */
 
-#include <lttng/location-internal.h>
-#include <common/macros.h>
+#include <lttng/location-internal.hpp>
+#include <common/macros.hpp>
 #include <stdlib.h>
-#include <common/error.h>
+#include <common/error.hpp>
 
 static
 struct lttng_trace_archive_location *lttng_trace_archive_location_create(
@@ -16,7 +16,7 @@ struct lttng_trace_archive_location *lttng_trace_archive_location_create(
 {
        struct lttng_trace_archive_location *location;
 
-       location = (lttng_trace_archive_location *) zmalloc(sizeof(*location));
+       location = zmalloc<lttng_trace_archive_location>();
        if (!location) {
                goto end;
        }
This page took 0.024107 seconds and 4 git commands to generate.