summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2022-03-20 06:07:52 +0100
committerbunnei <bunneidev@gmail.com>2022-03-25 02:13:33 +0100
commit7db60fe7da370c0d37182a27ec8af928cd066b40 (patch)
tree8749f9e65c3f2562682352d6241dd2a458b10006 /src/core/hle
parenthle: nvflinger: buffer_queue_core: StillTracking: Take const reference. (diff)
downloadyuzu-7db60fe7da370c0d37182a27ec8af928cd066b40.tar
yuzu-7db60fe7da370c0d37182a27ec8af928cd066b40.tar.gz
yuzu-7db60fe7da370c0d37182a27ec8af928cd066b40.tar.bz2
yuzu-7db60fe7da370c0d37182a27ec8af928cd066b40.tar.lz
yuzu-7db60fe7da370c0d37182a27ec8af928cd066b40.tar.xz
yuzu-7db60fe7da370c0d37182a27ec8af928cd066b40.tar.zst
yuzu-7db60fe7da370c0d37182a27ec8af928cd066b40.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/nvflinger/parcel.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/nvflinger/parcel.h b/src/core/hle/service/nvflinger/parcel.h
index b41c1732e..aa36e6479 100644
--- a/src/core/hle/service/nvflinger/parcel.h
+++ b/src/core/hle/service/nvflinger/parcel.h
@@ -89,7 +89,8 @@ public:
[[maybe_unused]] const u32 unknown = Read<u32>();
const u32 length = Read<u32>();
- std::u16string token{};
+ std::u16string token;
+ token.reserve(length + 1);
for (u32 ch = 0; ch < length + 1; ++ch) {
token.push_back(ReadUnaligned<u16>());