From e5bb07a973708b69d2e3d465ced87136b817d0a1 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 4 Apr 2019 00:12:52 -0400 Subject: yuzu/main: Use QStringLiteral where applicable within OnTransferableShaderCacheOpenFile() Allows these strings to have no allocation cost when used at runtime. --- src/yuzu/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 980aed496..86795eb67 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1105,10 +1105,10 @@ void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) { // OS we just open the transferable shader cache folder without preselecting the transferable // shader cache file for the selected game. #if defined(Q_OS_WIN) - const QString explorer = "explorer"; + const QString explorer = QStringLiteral("explorer"); QStringList param; if (!QFileInfo(transferable_shader_cache_file_path).isDir()) { - param << QLatin1String("/select,"); + param << QStringLiteral("/select,"); } param << QDir::toNativeSeparators(transferable_shader_cache_file_path); QProcess::startDetached(explorer, param); -- cgit v1.2.3