summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/glue/time/time_zone_binary.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/glue/time/time_zone_binary.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 '')
-rw-r--r--src/core/hle/service/glue/time/time_zone_binary.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/glue/time/time_zone_binary.cpp b/src/core/hle/service/glue/time/time_zone_binary.cpp
index cc50b6b7b..d5f7ca3d2 100644
--- a/src/core/hle/service/glue/time/time_zone_binary.cpp
+++ b/src/core/hle/service/glue/time/time_zone_binary.cpp
@@ -98,7 +98,7 @@ void GetTimeZoneBinaryVersionPath(std::string& out_path) {
out_path = "/version.txt";
}
-void GetTimeZoneZonePath(std::string& out_path, Service::PSC::Time::LocationName& name) {
+void GetTimeZoneZonePath(std::string& out_path, const Service::PSC::Time::LocationName& name) {
if (g_time_zone_binary_mount_result != ResultSuccess) {
return;
}
@@ -106,7 +106,7 @@ void GetTimeZoneZonePath(std::string& out_path, Service::PSC::Time::LocationName
out_path = fmt::format("/zoneinfo/{}", name.data());
}
-bool IsTimeZoneBinaryValid(Service::PSC::Time::LocationName& name) {
+bool IsTimeZoneBinaryValid(const Service::PSC::Time::LocationName& name) {
std::string path{};
GetTimeZoneZonePath(path, name);
@@ -155,7 +155,7 @@ Result GetTimeZoneVersion(Service::PSC::Time::RuleVersion& out_rule_version) {
}
Result GetTimeZoneRule(std::span<const u8>& out_rule, size_t& out_rule_size,
- Service::PSC::Time::LocationName& name) {
+ const Service::PSC::Time::LocationName& name) {
std::string path{};
GetTimeZoneZonePath(path, name);