Skip to content
Browse files

Core/Analytics: Make MakeUniqueId() a const member function

This function doesn't modify instance state, so we can mark it as const.
  • Loading branch information...
lioncash committed Jun 3, 2019
1 parent a5caa95 commit 57454e90a7c9d507a979a79474d70554727422b7
Showing with 2 additions and 2 deletions.
  1. +1 −1 Source/Core/Core/Analytics.cpp
  2. +1 −1 Source/Core/Core/Analytics.h
@@ -101,7 +101,7 @@ void DolphinAnalytics::GenerateNewIdentity()

std::string DolphinAnalytics::MakeUniqueId(std::string_view data)
std::string DolphinAnalytics::MakeUniqueId(std::string_view data) const
std::array<u8, 20> digest;
const auto input = std::string{m_unique_id}.append(data);
@@ -89,7 +89,7 @@ class DolphinAnalytics
// Returns a unique ID derived on the global unique ID, hashed with some
// report-specific data. This avoid correlation between different types of
// 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
// values created by MakeUniqueId.

0 comments on commit 57454e9

Please sign in to comment.
You can’t perform that action at this time.