From 7aea21f2a30e0aa3bc75a579bd01ff9746470c05 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 19 Oct 2025 19:36:36 +0200 Subject: replace strcmp with strops function --- src/ui/ui_invoices.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/ui_invoices.cpp') diff --git a/src/ui/ui_invoices.cpp b/src/ui/ui_invoices.cpp index 4ae1669..277ce46 100644 --- a/src/ui/ui_invoices.cpp +++ b/src/ui/ui_invoices.cpp @@ -137,7 +137,7 @@ void draw_invoice_items_form(invoice* invoice, bool outgoing) ImGui::TableSetColumnIndex(8); ImGui::Text("%.2f %s", invoice->orig_total, invoice->currency); - if (strcmp(invoice->currency, administration::get_default_currency()) != 0) { + if (!strops::equals(invoice->currency, administration::get_default_currency())) { ImGui::TableNextRow(); ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0, IM_COL32(50, 50, 50, 255)); -- cgit v1.2.3-70-g09d2