From b7964a20c1514444beb48ca285f0278237f184b7 Mon Sep 17 00:00:00 2001 From: boludoz Date: Mon, 9 Oct 2023 03:46:03 -0300 Subject: [PATCH] Clang format fixed --- src/yuzu/main.cpp | 2 +- src/yuzu/util/util.h | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 6db0d21c3f..9ef81cf185 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -3117,7 +3117,7 @@ void GMainWindow::OnGameListCreateShortcut(u64 program_id, const QString& game_p LOG_INFO(Frontend, "Wrote an icon to {}", icon_path.string()); } - const auto name = title; + const auto name = title; #elif defined(_WIN32) // ICO is only for Windows diff --git a/src/yuzu/util/util.h b/src/yuzu/util/util.h index 34315bca2e..ddd874553b 100644 --- a/src/yuzu/util/util.h +++ b/src/yuzu/util/util.h @@ -8,9 +8,11 @@ #include /// Returns a QFont object appropriate to use as a monospace font for debugging widgets, etc. + [[nodiscard]] QFont GetMonospaceFont(); /// Convert a size in bytes into a readable format (KiB, MiB, etc.) + [[nodiscard]] QString ReadableByteSize(qulonglong size); /** @@ -20,6 +22,7 @@ * * @return QPixmap circle pixmap */ + [[nodiscard]] QPixmap CreateCirclePixmapFromColor(const QColor& color); /** @@ -31,4 +34,5 @@ * * @return bool If the operation succeeded */ + [[nodiscard]] bool savePixmapsToICO(const QList& pixmaps, const QString& path);