diff options
| author | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-09 17:30:15 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@mailbox.org> | 2026-01-09 17:30:15 +0100 |
| commit | 0821197bc1c57c756e737740d6a6de9c83314fae (patch) | |
| tree | 4963d2be78bd0978442a4b311889c6f2c5feaeee /src/ui/ui_tax.cpp | |
| parent | ccacaf0582bcea4a71ec8247ade0fd75e4ca99bf (diff) | |
fix warnings
Diffstat (limited to 'src/ui/ui_tax.cpp')
| -rw-r--r-- | src/ui/ui_tax.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/ui_tax.cpp b/src/ui/ui_tax.cpp index f4176a6..5280e2a 100644 --- a/src/ui/ui_tax.cpp +++ b/src/ui/ui_tax.cpp @@ -63,7 +63,7 @@ void ui::draw_tax_report() ImGui::Spacing(); - char* currency_symbol = administration::get_currency_symbol_for_currency(administration::get_default_currency()); + const char* currency_symbol = administration::get_currency_symbol_for_currency(administration::get_default_currency()); tax_report report = statement->reports[current_page]; if (ImGui::BeginTable("QuarterlyTaxTable", 4, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Hideable)) @@ -110,7 +110,7 @@ void ui::draw_tax_report() #else ImGui::TableSetColumnIndex(2); if (line.show_net) ImGui::Text("%.2f %s", line.total_net, currency_symbol); - else ImGui::Text(""); + else ImGui::TextUnformatted(""); ImGui::TableSetColumnIndex(3); if (line.show_tax) { @@ -126,7 +126,7 @@ void ui::draw_tax_report() } } } - else ImGui::Text(""); + else ImGui::TextUnformatted(""); #endif if (bold) ImGui::PopFont(); |
