diff options
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/imgui_extensions.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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++) { |
