aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/mutex.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-07-19 10:15:00 -0400
committerLioncash <mathew1800@gmail.com>2018-07-19 10:46:54 -0400
commit45e747beaaafc5490bddb69196830f723c45d917 (patch)
treef65cb57670b5d421c394a598202df35d4f1eb267 /src/core/hle/kernel/mutex.cpp
parentb9758eeb2f0465659ed1bc716c93fbc419d954ad (diff)
fsp_srv: Remove unnecessary std::vector construction in IDirectory's Read() function
We were using a second std::vector as a buffer to convert another std::vector's data into a byte sequence, however we can just use pointers to the original data and use them directly with WriteBuffer, which avoids copying the data at all into a separate std::vector. We simply cast the pointers to u8* (which is allowed by the standard, given std::uint8_t is an alias for unsigned char on platforms that we support).
Diffstat (limited to 'src/core/hle/kernel/mutex.cpp')
0 files changed, 0 insertions, 0 deletions