summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Lioncash2019-05-24 21:08:27 -0400
committerGravatar Lioncash2019-05-24 21:31:01 -0400
commit3c0280cf66c1f424298ae5823829330485583a4c (patch)
treeb237d3f0284e99f25ea2e514186181ca953f8287
parentyuzu/applets/software_keyboard: Remove unused assert header (diff)
downloadyuzu-3c0280cf66c1f424298ae5823829330485583a4c.tar.gz
yuzu-3c0280cf66c1f424298ae5823829330485583a4c.tar.xz
yuzu-3c0280cf66c1f424298ae5823829330485583a4c.zip
yuzu/CMakeLists: Disable implicit QString conversions
Now that all of our code is compilable with implicit QString conversions, we can enforce it at compile-time by disabling them.
-rw-r--r--src/yuzu/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt
index 7e883991a..3ea7b55d0 100644
--- a/src/yuzu/CMakeLists.txt
+++ b/src/yuzu/CMakeLists.txt
@@ -155,6 +155,10 @@ target_compile_definitions(yuzu PRIVATE
155 # Use QStringBuilder for string concatenation to reduce 155 # Use QStringBuilder for string concatenation to reduce
156 # the overall number of temporary strings created. 156 # the overall number of temporary strings created.
157 -DQT_USE_QSTRINGBUILDER 157 -DQT_USE_QSTRINGBUILDER
158
159 # Disable implicit conversions from/to C strings
160 -DQT_NO_CAST_FROM_ASCII
161 -DQT_NO_CAST_TO_ASCII
158) 162)
159 163
160if (YUZU_ENABLE_COMPATIBILITY_REPORTING) 164if (YUZU_ENABLE_COMPATIBILITY_REPORTING)