aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/ngct
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2022-12-25 13:42:32 -0500
committerameerj <52414509+ameerj@users.noreply.github.com>2022-12-25 17:04:02 -0500
commit7ffd62424804eceb73f01b1c4e8dc216134c8295 (patch)
tree2bfe2a9b5d0a3f0857c73475cbdf24f6fe66c740 /src/core/hle/service/ngct
parentfbc375f0de26342a22c52bb78e14b4f78d2243c1 (diff)
service: Use ReadBufferSpan where it is trivial to do so
Diffstat (limited to 'src/core/hle/service/ngct')
-rw-r--r--src/core/hle/service/ngct/ngct.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/ngct/ngct.cpp b/src/core/hle/service/ngct/ngct.cpp
index 8af8a835d..bee62b054 100644
--- a/src/core/hle/service/ngct/ngct.cpp
+++ b/src/core/hle/service/ngct/ngct.cpp
@@ -24,7 +24,7 @@ public:
private:
void Match(Kernel::HLERequestContext& ctx) {
- const auto buffer = ctx.ReadBuffer();
+ const auto buffer = ctx.ReadBufferSpan();
const auto text = Common::StringFromFixedZeroTerminatedBuffer(
reinterpret_cast<const char*>(buffer.data()), buffer.size());
@@ -37,7 +37,7 @@ private:
}
void Filter(Kernel::HLERequestContext& ctx) {
- const auto buffer = ctx.ReadBuffer();
+ const auto buffer = ctx.ReadBufferSpan();
const auto text = Common::StringFromFixedZeroTerminatedBuffer(
reinterpret_cast<const char*>(buffer.data()), buffer.size());