diff options
author | bunnei <bunneidev@gmail.com> | 2019-04-17 04:17:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-17 04:17:09 +0200 |
commit | be6b9e2d2b130d9879e4e279e24727752c7eebbd (patch) | |
tree | f42c4ee400466b3d079c3b2e7f1635213c606501 | |
parent | Merge pull request #2092 from ReinUsesLisp/stg (diff) | |
parent | CMakeLists: Define QT_USE_QSTRINGBUILDER for the Qt target (diff) | |
download | yuzu-be6b9e2d2b130d9879e4e279e24727752c7eebbd.tar yuzu-be6b9e2d2b130d9879e4e279e24727752c7eebbd.tar.gz yuzu-be6b9e2d2b130d9879e4e279e24727752c7eebbd.tar.bz2 yuzu-be6b9e2d2b130d9879e4e279e24727752c7eebbd.tar.lz yuzu-be6b9e2d2b130d9879e4e279e24727752c7eebbd.tar.xz yuzu-be6b9e2d2b130d9879e4e279e24727752c7eebbd.tar.zst yuzu-be6b9e2d2b130d9879e4e279e24727752c7eebbd.zip |
-rw-r--r-- | src/yuzu/CMakeLists.txt | 6 | ||||
-rw-r--r-- | src/yuzu/game_list_p.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt index 2eb86d6e5..31b65c04c 100644 --- a/src/yuzu/CMakeLists.txt +++ b/src/yuzu/CMakeLists.txt @@ -151,6 +151,12 @@ target_link_libraries(yuzu PRIVATE common core input_common video_core) target_link_libraries(yuzu PRIVATE Boost::boost glad Qt5::OpenGL Qt5::Widgets) target_link_libraries(yuzu PRIVATE ${PLATFORM_LIBRARIES} Threads::Threads) +target_compile_definitions(yuzu PRIVATE + # Use QStringBuilder for string concatenation to reduce + # the overall number of temporary strings created. + -DQT_USE_QSTRINGBUILDER +) + if (YUZU_ENABLE_COMPATIBILITY_REPORTING) target_compile_definitions(yuzu PRIVATE -DYUZU_ENABLE_COMPATIBILITY_REPORTING) endif() diff --git a/src/yuzu/game_list_p.h b/src/yuzu/game_list_p.h index 3db0e90da..2cf5c58a0 100644 --- a/src/yuzu/game_list_p.h +++ b/src/yuzu/game_list_p.h @@ -95,7 +95,7 @@ public: if (row2.isEmpty()) return row1; - return row1 + "\n " + row2; + return QString(row1 + "\n " + row2); } return GameListItem::data(role); |