summaryrefslogtreecommitdiff
path: root/src/ui/ui_expenses.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/ui_expenses.cpp')
-rw-r--r--src/ui/ui_expenses.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/ui_expenses.cpp b/src/ui/ui_expenses.cpp
index e4441ef..8812273 100644
--- a/src/ui/ui_expenses.cpp
+++ b/src/ui/ui_expenses.cpp
@@ -244,7 +244,7 @@ static void draw_expenses_list()
ImGui::TableSetColumnIndex(6);
char btn_name[20];
- snprintf(btn_name, sizeof(btn_name), "%s##%d", locale::get("form.view"), i);
+ strops::format(btn_name, sizeof(btn_name), "%s##%d", locale::get("form.view"), i);
if (ImGui::Button(btn_name)) {
active_invoice = c;
current_view_state = ui::view_state::VIEW_EXISTING;
@@ -252,14 +252,14 @@ static void draw_expenses_list()
ImGui::SameLine();
- snprintf(btn_name, sizeof(btn_name), "%s##%d", locale::get("form.change"), i);
+ strops::format(btn_name, sizeof(btn_name), "%s##%d", locale::get("form.change"), i);
if (ImGui::Button(btn_name)) {
active_invoice = administration::invoice_create_copy(&c); // We create a copy because of billing item list pointers.
current_view_state = ui::view_state::EDIT_EXISTING;
}
ImGui::SameLine();
- snprintf(btn_name, sizeof(btn_name), "%s##%d", locale::get("form.delete"), i);
+ strops::format(btn_name, sizeof(btn_name), "%s##%d", locale::get("form.delete"), i);
if (ImGui::Button(btn_name)) {
selected_for_removal = c;
ImGui::OpenPopup("ConfirmDeletePopup");