From 7a65f5ff41f548e890f39ee01cb45e8350219408 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sun, 23 Jun 2019 16:58:18 +0200 Subject: [PATCH] replace NULL by nullptr --- common/include/villas/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/include/villas/list.h b/common/include/villas/list.h index a00dbecef..7838e01d4 100644 --- a/common/include/villas/list.h +++ b/common/include/villas/list.h @@ -42,11 +42,11 @@ __attribute__((constructor(105))) static void UNIQUE(__ctor)() {\ vlist_init(l); \ } \ __attribute__((destructor(105))) static void UNIQUE(__dtor)() { \ - vlist_destroy(l, NULL, false); \ + vlist_destroy(l, nullptr, false); \ } #define vlist_length(list) ((list)->length) -#define vlist_at_safe(list, index) ((list)->length > index ? (list)->array[index] : NULL) +#define vlist_at_safe(list, index) ((list)->length > index ? (list)->array[index] : nullptr) #define vlist_at(list, index) ((list)->array[index]) #define vlist_first(list) vlist_at(list, 0)