mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 21:13:35 +00:00
Format all C++ and Java code via clang-format
Signed-off-by: Konstantin Pastbin <konstantin.pastbin@gmail.com>
This commit is contained in:
@@ -52,7 +52,7 @@ bool FromString<string>(string const & strIn, string & strOut)
|
||||
namespace impl
|
||||
{
|
||||
template <class T, size_t N>
|
||||
bool FromStringArray(string const & s, T(&arr)[N])
|
||||
bool FromStringArray(string const & s, T (&arr)[N])
|
||||
{
|
||||
istringstream in(s);
|
||||
size_t count = 0;
|
||||
@@ -406,7 +406,7 @@ void UsageStats::EnterBackground()
|
||||
return;
|
||||
|
||||
// Safe check if uninitialized. Possible when entering background on DownloadResourcesLegacyActivity.
|
||||
//ASSERT(m_enterForegroundTime > 0, ());
|
||||
// ASSERT(m_enterForegroundTime > 0, ());
|
||||
if (m_enterForegroundTime == 0)
|
||||
return;
|
||||
|
||||
@@ -429,13 +429,13 @@ void UsageStats::EnterBackground()
|
||||
|
||||
bool UsageStats::IsLoyalUser() const
|
||||
{
|
||||
#ifdef DEBUG
|
||||
#ifdef DEBUG
|
||||
uint32_t constexpr kMinTotalForegroundTimeout = 30;
|
||||
uint32_t constexpr kMinSessionsCount = 3;
|
||||
#else
|
||||
uint32_t constexpr kMinTotalForegroundTimeout = 60 * 30; // 30 min
|
||||
#else
|
||||
uint32_t constexpr kMinTotalForegroundTimeout = 60 * 30; // 30 min
|
||||
uint32_t constexpr kMinSessionsCount = 5;
|
||||
#endif
|
||||
#endif
|
||||
return m_sessionsCount >= kMinSessionsCount && m_totalForegroundTime >= kMinTotalForegroundTimeout;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user