From: cheoleun moon Date: Thu, 3 Nov 2022 10:09:00 +0000 (+0900) Subject: Use nullptr instead of NULL X-Git-Tag: accepted/tizen/unified/20221107.173032^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce5d209e23ac3eb71cf024297f47ba9e09ad26b5;p=platform%2Fcore%2Fapi%2Fvine.git Use nullptr instead of NULL Change-Id: Ie09e713b5c050ed4681eb61547208b32799494ed --- diff --git a/plugins/ble-gatt/ble-gatt-plugin.cpp b/plugins/ble-gatt/ble-gatt-plugin.cpp index cb02df9..0271e2c 100755 --- a/plugins/ble-gatt/ble-gatt-plugin.cpp +++ b/plugins/ble-gatt/ble-gatt-plugin.cpp @@ -1178,7 +1178,7 @@ int gatt_read(vine_dp_plugin_h handle, unsigned char *buf, size_t len) RET_VAL_IF(len == 0, 0, "len is 0"); vine_gatt_s *gatt = (vine_gatt_s *)handle; - gatt_data_s *gd = NULL; + gatt_data_s *gd = nullptr; size_t bytes = 0; if (!gatt->recv_buffer) @@ -1203,7 +1203,7 @@ int gatt_read(vine_dp_plugin_h handle, unsigned char *buf, size_t len) gatt->recv_buffer->pop(); bool last = gd->last; __destroy_gatt_data(gd); - gd = NULL; + gd = nullptr; if (last) break; } else if (read_len < gd->len) { // requeue diff --git a/plugins/libwebsockets/libwebsockets-plugin.cpp b/plugins/libwebsockets/libwebsockets-plugin.cpp index 383c8cd..034c685 100755 --- a/plugins/libwebsockets/libwebsockets-plugin.cpp +++ b/plugins/libwebsockets/libwebsockets-plugin.cpp @@ -1075,7 +1075,7 @@ static int websocket_read(vine_dp_plugin_h handle, unsigned char *buf, size_t le RET_VAL_IF(len == 0, 0, "len is 0"); websocket_s *ws = (websocket_s *)handle; - websocket_data_s *wd = NULL; + websocket_data_s *wd = nullptr; size_t bytes = 0; if (!ws->recv_buffer) @@ -1100,7 +1100,7 @@ static int websocket_read(vine_dp_plugin_h handle, unsigned char *buf, size_t le ws->recv_buffer->pop(); bool last = wd->last; __destroy_websocket_data(wd); - wd = NULL; + wd = nullptr; if (last) break; } else if (read_len < wd->len) { // requeue