summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/psc/time/static.cpp
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2024-02-02 15:10:46 +0100
committerGitHub <noreply@github.com>2024-02-02 15:10:46 +0100
commit6baf965777145fd9c76bd06a3c140afa46a50e87 (patch)
tree52a9b8ea293bb9b378e7e662b92e9c56d1f87d4c /src/core/hle/service/psc/time/static.cpp
parentMerge pull request #12845 from liamwhite/notif (diff)
parentservice: use const references for input raw data (diff)
downloadyuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar
yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.gz
yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.bz2
yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.lz
yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.xz
yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.tar.zst
yuzu-6baf965777145fd9c76bd06a3c140afa46a50e87.zip
Diffstat (limited to 'src/core/hle/service/psc/time/static.cpp')
-rw-r--r--src/core/hle/service/psc/time/static.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/hle/service/psc/time/static.cpp b/src/core/hle/service/psc/time/static.cpp
index 3ca3311af..24b85cc61 100644
--- a/src/core/hle/service/psc/time/static.cpp
+++ b/src/core/hle/service/psc/time/static.cpp
@@ -198,8 +198,8 @@ Result StaticService::GetStandardUserSystemClockAutomaticCorrectionUpdatedTime(
R_SUCCEED();
}
-Result StaticService::CalculateMonotonicSystemClockBaseTimePoint(Out<s64> out_time,
- SystemClockContext& context) {
+Result StaticService::CalculateMonotonicSystemClockBaseTimePoint(
+ Out<s64> out_time, const SystemClockContext& context) {
SCOPE_EXIT({ LOG_DEBUG(Service_Time, "called. context={} out_time={}", context, *out_time); });
R_UNLESS(m_time->m_standard_steady_clock.IsInitialized(), ResultClockUninitialized);
@@ -231,10 +231,9 @@ Result StaticService::GetClockSnapshot(OutClockSnapshot out_snapshot, TimeType t
R_RETURN(GetClockSnapshotImpl(out_snapshot, user_context, network_context, type));
}
-Result StaticService::GetClockSnapshotFromSystemClockContext(TimeType type,
- OutClockSnapshot out_snapshot,
- SystemClockContext& user_context,
- SystemClockContext& network_context) {
+Result StaticService::GetClockSnapshotFromSystemClockContext(
+ TimeType type, OutClockSnapshot out_snapshot, const SystemClockContext& user_context,
+ const SystemClockContext& network_context) {
SCOPE_EXIT({
LOG_DEBUG(Service_Time,
"called. type={} user_context={} network_context={} out_snapshot={}", type,
@@ -294,8 +293,9 @@ Result StaticService::CalculateSpanBetween(Out<s64> out_time, InClockSnapshot a,
}
Result StaticService::GetClockSnapshotImpl(OutClockSnapshot out_snapshot,
- SystemClockContext& user_context,
- SystemClockContext& network_context, TimeType type) {
+ const SystemClockContext& user_context,
+ const SystemClockContext& network_context,
+ TimeType type) {
out_snapshot->user_context = user_context;
out_snapshot->network_context = network_context;