summaryrefslogtreecommitdiff
path: root/src/ui/ui_tax.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik@mailbox.org>2026-01-09 17:30:15 +0100
committerAldrik Ramaekers <aldrik@mailbox.org>2026-01-09 17:30:15 +0100
commit0821197bc1c57c756e737740d6a6de9c83314fae (patch)
tree4963d2be78bd0978442a4b311889c6f2c5feaeee /src/ui/ui_tax.cpp
parentccacaf0582bcea4a71ec8247ade0fd75e4ca99bf (diff)
fix warnings
Diffstat (limited to 'src/ui/ui_tax.cpp')
-rw-r--r--src/ui/ui_tax.cpp6
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();