Use nullptr instead of NULL 22/283822/1 accepted/tizen/unified/20221107.173032
authorcheoleun moon <chleun.moon@samsung.com>
Thu, 3 Nov 2022 10:09:00 +0000 (19:09 +0900)
committercheoleun moon <chleun.moon@samsung.com>
Thu, 3 Nov 2022 10:14:49 +0000 (19:14 +0900)
Change-Id: Ie09e713b5c050ed4681eb61547208b32799494ed

plugins/ble-gatt/ble-gatt-plugin.cpp
plugins/libwebsockets/libwebsockets-plugin.cpp

index cb02df9..0271e2c 100755 (executable)
@@ -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
index 383c8cd..034c685 100755 (executable)
@@ -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