diff options
author | bunnei <bunneidev@gmail.com> | 2018-08-21 04:15:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-21 04:15:56 +0200 |
commit | c4ce7e456a1cb86faa99f00479fe50b427a16026 (patch) | |
tree | 49a04f9de6091b00c0c2646f759ef9b8785e6224 | |
parent | Merge pull request #1131 from bunnei/impl-tex3d-texcube (diff) | |
parent | telemetry_session: Don't allocate std::string instances for program lifetime in GetTelemetryId() and RegenerateTelemetryId() (diff) | |
download | yuzu-c4ce7e456a1cb86faa99f00479fe50b427a16026.tar yuzu-c4ce7e456a1cb86faa99f00479fe50b427a16026.tar.gz yuzu-c4ce7e456a1cb86faa99f00479fe50b427a16026.tar.bz2 yuzu-c4ce7e456a1cb86faa99f00479fe50b427a16026.tar.lz yuzu-c4ce7e456a1cb86faa99f00479fe50b427a16026.tar.xz yuzu-c4ce7e456a1cb86faa99f00479fe50b427a16026.tar.zst yuzu-c4ce7e456a1cb86faa99f00479fe50b427a16026.zip |
-rw-r--r-- | src/core/telemetry_session.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/telemetry_session.cpp b/src/core/telemetry_session.cpp index 7e4584fc2..69383330f 100644 --- a/src/core/telemetry_session.cpp +++ b/src/core/telemetry_session.cpp @@ -19,8 +19,8 @@ static u64 GenerateTelemetryId() { u64 GetTelemetryId() { u64 telemetry_id{}; - static const std::string& filename{FileUtil::GetUserPath(FileUtil::UserPath::ConfigDir) + - "telemetry_id"}; + const std::string filename{FileUtil::GetUserPath(FileUtil::UserPath::ConfigDir) + + "telemetry_id"}; if (FileUtil::Exists(filename)) { FileUtil::IOFile file(filename, "rb"); @@ -44,8 +44,8 @@ u64 GetTelemetryId() { u64 RegenerateTelemetryId() { const u64 new_telemetry_id{GenerateTelemetryId()}; - static const std::string& filename{FileUtil::GetUserPath(FileUtil::UserPath::ConfigDir) + - "telemetry_id"}; + const std::string filename{FileUtil::GetUserPath(FileUtil::UserPath::ConfigDir) + + "telemetry_id"}; FileUtil::IOFile file(filename, "wb"); if (!file.IsOpen()) { |