summaryrefslogtreecommitdiff
path: root/Source/Core/Common/AndroidAnalytics.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2022-01-06 12:20:09 +0100
committerJosJuice <josjuice@gmail.com>2022-01-06 12:20:09 +0100
commit804f78e0e4733b883f4fef8337473c75e23eb378 (patch)
tree3fd5a4306a76d936746670f17d65bc55ba04f7fd /Source/Core/Common/AndroidAnalytics.cpp
parent7bd14c5d9f5b59217e3d2ad3ee5eb6bab8358209 (diff)
Android: Mark s_android_send_report as static
Fixes a compiler warning.
Diffstat (limited to 'Source/Core/Common/AndroidAnalytics.cpp')
-rw-r--r--Source/Core/Common/AndroidAnalytics.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/Core/Common/AndroidAnalytics.cpp b/Source/Core/Common/AndroidAnalytics.cpp
index a25acb17f4..ebcc1791ba 100644
--- a/Source/Core/Common/AndroidAnalytics.cpp
+++ b/Source/Core/Common/AndroidAnalytics.cpp
@@ -8,15 +8,18 @@
namespace Common
{
-std::function<void(std::string, std::string)> s_android_send_report;
+static std::function<void(std::string, std::string)> s_android_send_report;
+
void AndroidSetReportHandler(std::function<void(std::string, std::string)> func)
{
s_android_send_report = std::move(func);
}
+
AndroidAnalyticsBackend::AndroidAnalyticsBackend(std::string passed_endpoint)
: m_endpoint{std::move(passed_endpoint)}
{
}
+
AndroidAnalyticsBackend::~AndroidAnalyticsBackend() = default;
void AndroidAnalyticsBackend::Send(std::string report)