From 3e85a8e6db1a9c9a7fcf7974a1a0307b2cb145bd Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 19 Oct 2025 20:03:22 +0200 Subject: strops and memops refactor --- src/ui/imgui_extensions.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ui/imgui_extensions.cpp') diff --git a/src/ui/imgui_extensions.cpp b/src/ui/imgui_extensions.cpp index 66160ae..b59c13f 100644 --- a/src/ui/imgui_extensions.cpp +++ b/src/ui/imgui_extensions.cpp @@ -252,7 +252,7 @@ namespace ImGui costcenter_count = administration::cost_center_get_all(buffer); // Select cost center by given id. - if (strlen(costcenter_id) > 0) + if (!strops::empty(costcenter_id)) { for (u32 i = 0; i < costcenter_count; i++) { @@ -293,7 +293,7 @@ namespace ImGui project_count = administration::project_get_all(buffer); // Select project by given id. - if (strlen(project_id) > 0) + if (!strops::empty(project_id)) { for (u32 i = 0; i < project_count; i++) { @@ -334,7 +334,7 @@ namespace ImGui tax_rate_count = administration::tax_rate_get_all(buffer, outgoing ? tax_rate_type::TAX_RATE_OUTGOING_INVOICE : tax_rate_type::TAX_RATE_INCOMMING_INVOICE); // Select tax rate by given id. - if (strlen(tax_internal_code) > 0) + if (!strops::empty(tax_internal_code)) { for (u32 i = 0; i < tax_rate_count; i++) { @@ -411,7 +411,7 @@ namespace ImGui }; int currency_count = sizeof(currencies) / sizeof(char*); - if (strlen(currency) > 0) + if (!strops::empty(currency)) { for (int i = 0; i < currency_count; i++) { -- cgit v1.2.3-70-g09d2