From c310ba782aeae9e287d5f76bfab7dfbe473957da Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Tue, 26 Mar 2024 10:54:19 +0100 Subject: [PATCH] utils: drop the prefix param from drmFormatName --- src/utils/drm_format_helper.cpp | 4 ++-- src/utils/drm_format_helper.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/drm_format_helper.cpp b/src/utils/drm_format_helper.cpp index a251a28ff7..e78f7a107d 100644 --- a/src/utils/drm_format_helper.cpp +++ b/src/utils/drm_format_helper.cpp @@ -111,10 +111,10 @@ std::optional FormatInfo::get(uint32_t drmFormat) } } -QString FormatInfo::drmFormatName(const QString &prefix, uint32_t format) +QString FormatInfo::drmFormatName(uint32_t format) { return QString::asprintf( - "%s%c%c%c%c %s-endian (0x%08x)", prefix.toUtf8().constData(), + "%c%c%c%c %s-endian (0x%08x)", QLatin1Char(format & 0xff).toLatin1(), QLatin1Char((format >> 8) & 0xff).toLatin1(), QLatin1Char((format >> 16) & 0xff).toLatin1(), diff --git a/src/utils/drm_format_helper.h b/src/utils/drm_format_helper.h index 56c50648a2..d68893609e 100644 --- a/src/utils/drm_format_helper.h +++ b/src/utils/drm_format_helper.h @@ -53,6 +53,6 @@ struct KWIN_EXPORT FormatInfo } static std::optional get(uint32_t drmFormat); - static QString drmFormatName(const QString &prefix, uint32_t format); + static QString drmFormatName(uint32_t format); }; }