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_earnings.cpp | |
| parent | ccacaf0582bcea4a71ec8247ade0fd75e4ca99bf (diff) | |
fix warnings
Diffstat (limited to 'src/ui/ui_earnings.cpp')
| -rw-r--r-- | src/ui/ui_earnings.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ui/ui_earnings.cpp b/src/ui/ui_earnings.cpp index b93bd75..6bd3b98 100644 --- a/src/ui/ui_earnings.cpp +++ b/src/ui/ui_earnings.cpp @@ -62,7 +62,7 @@ void ui::draw_earnings() 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()); if (ImGui::BeginTable("QuarterlyResultsTable", 5, ImGuiTableFlags_Borders | ImGuiTableFlags_RowBg | ImGuiTableFlags_SizingFixedFit | ImGuiTableFlags_Hideable)) { @@ -104,10 +104,10 @@ void ui::draw_earnings() if (has_uncategorized_revenue || has_uncategorized_taxes || has_uncategorized_expenses) { ImGui::TableNextRow(); ImGui::TableSetColumnIndex(0); ImGui::Text("(%s)", locale::get("statement.uncategorized")); - ImGui::TableSetColumnIndex(1); ImGui::Text(""); - ImGui::TableSetColumnIndex(2); ImGui::Text(""); - ImGui::TableSetColumnIndex(3); ImGui::Text(""); - ImGui::TableSetColumnIndex(4); ImGui::Text(""); + ImGui::TableSetColumnIndex(1); ImGui::TextUnformatted(""); + ImGui::TableSetColumnIndex(2); ImGui::TextUnformatted(""); + ImGui::TableSetColumnIndex(3); ImGui::TextUnformatted(""); + ImGui::TableSetColumnIndex(4); ImGui::TextUnformatted(""); } if (has_uncategorized_revenue) { @@ -148,10 +148,10 @@ void ui::draw_earnings() ImGuiTreeNodeFlags_SpanFullWidth | ImGuiTreeNodeFlags_DefaultOpen); - ImGui::TableSetColumnIndex(1); ImGui::Text(""); - ImGui::TableSetColumnIndex(2); ImGui::Text(""); - ImGui::TableSetColumnIndex(3); ImGui::Text(""); - ImGui::TableSetColumnIndex(4); ImGui::Text(""); + ImGui::TableSetColumnIndex(1); ImGui::TextUnformatted(""); + ImGui::TableSetColumnIndex(2); ImGui::TextUnformatted(""); + ImGui::TableSetColumnIndex(3); ImGui::TextUnformatted(""); + ImGui::TableSetColumnIndex(4); ImGui::TextUnformatted(""); if (!toggled) continue; |
