From 9fdb2b48e1f9f6f0e1c8c7725c2c6c156653d94e Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Thu, 15 Dec 2022 16:18:49 +0800 Subject: [PATCH] GTK3 theme: simplify code There's no need to first convert to QString and then convert back to QByteArray. Change-Id: Idedcf3143f44c640a9259f16e364dfe76ecf4c0d Reviewed-by: Liang Qi (cherry picked from commit e86a5f5f8b184562b5cde0da8882a2d8ebce84d5) Reviewed-by: Qt Cherry-pick Bot --- src/plugins/platformthemes/gtk3/qgtk3theme.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platformthemes/gtk3/qgtk3theme.cpp b/src/plugins/platformthemes/gtk3/qgtk3theme.cpp index c846905786a..7e7e3e5d9d1 100644 --- a/src/plugins/platformthemes/gtk3/qgtk3theme.cpp +++ b/src/plugins/platformthemes/gtk3/qgtk3theme.cpp @@ -110,7 +110,7 @@ QGtk3Theme::QGtk3Theme() if (qEnvironmentVariableIsEmpty("XCURSOR_SIZE")) { const int cursorSize = gtkSetting("gtk-cursor-theme-size"); if (cursorSize > 0) - qputenv("XCURSOR_SIZE", QString::number(cursorSize).toUtf8()); + qputenv("XCURSOR_SIZE", QByteArray::number(cursorSize)); } if (qEnvironmentVariableIsEmpty("XCURSOR_THEME")) { const QString cursorTheme = gtkSetting("gtk-cursor-theme-name");