summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2019-04-04 00:12:52 -0400
committerGravatar Lioncash2019-04-04 00:12:55 -0400
commite5bb07a973708b69d2e3d465ced87136b817d0a1 (patch)
treeb4bf8b6e9fdd77d9f96b41dc71fffbf52bc547c8
parentyuzu/main: Tidy up the error dialog string in OnTransferableShaderCacheOpenFi... (diff)
downloadyuzu-e5bb07a973708b69d2e3d465ced87136b817d0a1.tar.gz
yuzu-e5bb07a973708b69d2e3d465ced87136b817d0a1.tar.xz
yuzu-e5bb07a973708b69d2e3d465ced87136b817d0a1.zip
yuzu/main: Use QStringLiteral where applicable within OnTransferableShaderCacheOpenFile()
Allows these strings to have no allocation cost when used at runtime.
-rw-r--r--src/yuzu/main.cpp4
1 files 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) {
1105 // OS we just open the transferable shader cache folder without preselecting the transferable 1105 // OS we just open the transferable shader cache folder without preselecting the transferable
1106 // shader cache file for the selected game. 1106 // shader cache file for the selected game.
1107#if defined(Q_OS_WIN) 1107#if defined(Q_OS_WIN)
1108 const QString explorer = "explorer"; 1108 const QString explorer = QStringLiteral("explorer");
1109 QStringList param; 1109 QStringList param;
1110 if (!QFileInfo(transferable_shader_cache_file_path).isDir()) { 1110 if (!QFileInfo(transferable_shader_cache_file_path).isDir()) {
1111 param << QLatin1String("/select,"); 1111 param << QStringLiteral("/select,");
1112 } 1112 }
1113 param << QDir::toNativeSeparators(transferable_shader_cache_file_path); 1113 param << QDir::toNativeSeparators(transferable_shader_cache_file_path);
1114 QProcess::startDetached(explorer, param); 1114 QProcess::startDetached(explorer, param);