summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-06-05 16:05:34 -0400
committerGravatar Lioncash2019-06-05 16:05:40 -0400
commitd7d5bffa181b5e8d5e07f5c38a3f0ccbb70955e5 (patch)
tree7c27d5caddc5d9619a58cfeaa87280be2c7e486b /src
parentyuzu/CMakeLists: Disable unsafe overloads of QProcess' start() function (diff)
downloadyuzu-d7d5bffa181b5e8d5e07f5c38a3f0ccbb70955e5.tar.gz
yuzu-d7d5bffa181b5e8d5e07f5c38a3f0ccbb70955e5.tar.xz
yuzu-d7d5bffa181b5e8d5e07f5c38a3f0ccbb70955e5.zip
yuzu/CMakeLists: Disable implicit QString->QUrl conversions
Enforces the use of the proper URL resolution functions. e.g. url = some_local_path_string; should actually be: url = QUrl::fromLocalPath(some_local_path_string); etc. This makes it harder to cause bugs when operating with both strings and URLs at the same time.
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt
index 37394be37..3dc0e47d0 100644
--- a/src/yuzu/CMakeLists.txt
+++ b/src/yuzu/CMakeLists.txt
@@ -165,6 +165,9 @@ target_compile_definitions(yuzu PRIVATE
165 165
166 # Disable unsafe overloads of QProcess' start() function. 166 # Disable unsafe overloads of QProcess' start() function.
167 -DQT_NO_PROCESS_COMBINED_ARGUMENT_START 167 -DQT_NO_PROCESS_COMBINED_ARGUMENT_START
168
169 # Disable implicit QString->QUrl conversions to enforce use of proper resolving functions.
170 -DQT_NO_URL_CAST_FROM_STRING
168) 171)
169 172
170if (YUZU_ENABLE_COMPATIBILITY_REPORTING) 173if (YUZU_ENABLE_COMPATIBILITY_REPORTING)