From 6cfde37e9832a13c32e0dd3760e38dae57d86801 Mon Sep 17 00:00:00 2001 From: nmzik Date: Thu, 17 Sep 2026 20:18:25 +0400 Subject: [PATCH] avoid extra allocations --- src/graphics/guest_gpu/tile.cpp | 13 ++----------- src/launcher/src/configurationListWidget.cpp | 3 +-- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/src/graphics/guest_gpu/tile.cpp b/src/graphics/guest_gpu/tile.cpp index 651390ce8..0c2cb86bd 100644 --- a/src/graphics/guest_gpu/tile.cpp +++ b/src/graphics/guest_gpu/tile.cpp @@ -10,10 +10,6 @@ #include #include #include -#include -#include -#include -#include namespace Libs::Graphics { @@ -1323,13 +1319,8 @@ void TileGetTextureSize(Prospero::BufferFormat format, uint32_t width, uint32_t return; } if (total_size != nullptr && total_size->size == 0) { - std::vector list; - list.push_back(fmt::format("format = {}", static_cast(format))); - list.push_back(fmt::format("width = {}", width)); - list.push_back(fmt::format("height = {}", height)); - list.push_back(fmt::format("levels = {}", levels)); - list.push_back(fmt::format("tile = {}", static_cast(tile))); - EXIT("unknown format:\n%s\n", fmt::format("{}", fmt::join(list, "\n"))); + EXIT("unknown format:\nformat = %u\nwidth = %u\nheight = %u\nlevels = %u\ntile = %u\n", + static_cast(format), width, height, levels, static_cast(tile)); } } diff --git a/src/launcher/src/configurationListWidget.cpp b/src/launcher/src/configurationListWidget.cpp index 8e4e655e0..088a37a80 100644 --- a/src/launcher/src/configurationListWidget.cpp +++ b/src/launcher/src/configurationListWidget.cpp @@ -862,8 +862,7 @@ void ConfigurationListWidget::show_context_menu(const QPoint& pos) { const bool has_trophy_data = item != nullptr && TrophyViewerDialog::HasTrophyData(&item->GetInfo()); - QAction* action_run = menu.addAction(tr("Run")); - connect(action_run, &QAction::triggered, this, &ConfigurationListWidget::Run); + QAction* action_run = menu.addAction(tr("Run"), this, SIGNAL(Run())); QAction* action_open_folder = menu.addAction(style()->standardIcon(QStyle::SP_DirOpenIcon), tr("Open game folder"), this, SLOT(open_game_folder()));