DolphinAnalytics: Move variable declaration

Move endpoint declaration from anonymous namespace to the only function
it's used in.
This commit is contained in:
Dentomologist 2021-01-25 09:25:02 -08:00
parent 2f1eec9231
commit 3a6e99f2ae

View File

@ -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));