mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-14 00:09:24 +01:00
Core/Analytics: Make MakeUniqueId() a const member function
This function doesn't modify instance state, so we can mark it as const.
This commit is contained in:
parent
a5caa95a4b
commit
57454e90a7
@ -101,7 +101,7 @@ void DolphinAnalytics::GenerateNewIdentity()
|
|||||||
SConfig::GetInstance().SaveSettings();
|
SConfig::GetInstance().SaveSettings();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string DolphinAnalytics::MakeUniqueId(std::string_view data)
|
std::string DolphinAnalytics::MakeUniqueId(std::string_view data) const
|
||||||
{
|
{
|
||||||
std::array<u8, 20> digest;
|
std::array<u8, 20> digest;
|
||||||
const auto input = std::string{m_unique_id}.append(data);
|
const auto input = std::string{m_unique_id}.append(data);
|
||||||
|
@ -89,7 +89,7 @@ private:
|
|||||||
// Returns a unique ID derived on the global unique ID, hashed with some
|
// Returns a unique ID derived on the global unique ID, hashed with some
|
||||||
// report-specific data. This avoid correlation between different types of
|
// report-specific data. This avoid correlation between different types of
|
||||||
// events.
|
// events.
|
||||||
std::string MakeUniqueId(std::string_view data);
|
std::string MakeUniqueId(std::string_view data) const;
|
||||||
|
|
||||||
// Unique ID. This should never leave the application. Only used derived
|
// Unique ID. This should never leave the application. Only used derived
|
||||||
// values created by MakeUniqueId.
|
// values created by MakeUniqueId.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user