summaryrefslogtreecommitdiff
path: root/src/ui/imgui_extensions.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-10-19 20:03:22 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-10-19 20:03:22 +0200
commit3e85a8e6db1a9c9a7fcf7974a1a0307b2cb145bd (patch)
tree16d611d9190bcf4939dd054909cb3a41a6d20fb7 /src/ui/imgui_extensions.cpp
parent7aea21f2a30e0aa3bc75a579bd01ff9746470c05 (diff)
strops and memops refactor
Diffstat (limited to 'src/ui/imgui_extensions.cpp')
-rw-r--r--src/ui/imgui_extensions.cpp8
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++)
{