From 1e191607c478f2d6d78ae2b80855d05f877bd8bb Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Fri, 15 Mar 2024 23:09:25 +0100 Subject: NULL > nullptr --- src/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index ee73d7e..0828859 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -267,7 +267,7 @@ void _ts_create_file_error_rows() { void _ts_create_text_match_rows() { uint32_t itemcount = current_search_result == 0 ? 0 : current_search_result->matches.length; - ts_found_file* prev_file = nullptr; + ts_found_file* prev_file = NULL; for (uint32_t item = 0; item < itemcount; item++) { ts_file_match *match = (ts_file_match *)ts_array_at(¤t_search_result->matches, item); @@ -448,7 +448,7 @@ int _ts_create_textbox_area(int window_w, int window_h, int textbox_area_height, void _ts_update_dragdrop() { if (ImGui::BeginDragDropSource(ImGuiDragDropFlags_SourceExtern)) // we use an external source (i.e. not ImGui-created) { - ImGui::SetDragDropPayload("FILES", nullptr, 0); + ImGui::SetDragDropPayload("FILES", NULL, 0); ImGui::EndDragDropSource(); } @@ -535,7 +535,7 @@ void ts_create_gui(int window_w, int window_h) { ImGui::TableHeadersRow(); - if (current_search_result->search_text == nullptr) _ts_create_file_match_rows(); + if (current_search_result->search_text == NULL) _ts_create_file_match_rows(); else _ts_create_text_match_rows(); if (current_search_result->search_completed && (current_search_result->files.length == 0 || current_search_result->match_count == 0)) { -- cgit v1.2.3-70-g09d2