mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-03-18 11:23:38 +00:00
DolphinAnalytics: Move variable declaration
Move endpoint declaration from anonymous namespace to the only function it's used in.
This commit is contained in:
parent
2f1eec9231
commit
3a6e99f2ae
@ -46,8 +46,6 @@
|
||||
|
||||
namespace
|
||||
{
|
||||
constexpr char ANALYTICS_ENDPOINT[] = "https://analytics.dolphin-emu.org/report";
|
||||
|
||||
using namespace std::chrono_literals;
|
||||
|
||||
// Performance sampling configuration constants.
|
||||
@ -112,7 +110,8 @@ void DolphinAnalytics::ReloadConfig()
|
||||
std::unique_ptr<Common::AnalyticsReportingBackend> new_backend;
|
||||
if (m_last_analytics_enabled)
|
||||
{
|
||||
new_backend = std::make_unique<Common::HttpAnalyticsBackend>(ANALYTICS_ENDPOINT);
|
||||
constexpr char analytics_endpoint[] = "https://analytics.dolphin-emu.org/report";
|
||||
new_backend = std::make_unique<Common::HttpAnalyticsBackend>(analytics_endpoint);
|
||||
}
|
||||
m_reporter.SetBackend(std::move(new_backend));
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user