mirror of
https://codeberg.org/comaps/comaps
synced 2026-01-08 05:17:56 +00:00
Merge commit '7312560f48' into traffic
# Conflicts: # iphone/Maps/UI/Settings/SettingsNavigationView.swift # libs/drape_frontend/rule_drawer.cpp # libs/traffic/traffic_info.cpp
This commit is contained in:
@@ -22,7 +22,7 @@ namespace storage
|
||||
{
|
||||
namespace
|
||||
{
|
||||
size_t const kInvalidId = std::numeric_limits<size_t>::max();
|
||||
size_t constexpr kInvalidId = std::numeric_limits<size_t>::max();
|
||||
} // namespace
|
||||
|
||||
// CountryInfoGetterBase ---------------------------------------------------------------------------
|
||||
|
||||
@@ -21,13 +21,13 @@ namespace
|
||||
{
|
||||
using namespace storage::diffs;
|
||||
|
||||
char const kMaxVersionKey[] = "max_version";
|
||||
char const kMwmsKey[] = "mwms";
|
||||
char const kNameKey[] = "name";
|
||||
char const kSizeKey[] = "size";
|
||||
char const kVersionKey[] = "version";
|
||||
char constexpr kMaxVersionKey[] = "max_version";
|
||||
char constexpr kMwmsKey[] = "mwms";
|
||||
char constexpr kNameKey[] = "name";
|
||||
char constexpr kSizeKey[] = "size";
|
||||
char constexpr kVersionKey[] = "version";
|
||||
|
||||
auto const kTimeoutInSeconds = 5.0;
|
||||
auto constexpr kTimeoutInSeconds = 5.0;
|
||||
|
||||
string SerializeCheckerData(LocalMapsInfo const & info)
|
||||
{
|
||||
|
||||
@@ -47,10 +47,10 @@ string const kDownloadQueueKey = "DownloadQueue";
|
||||
// is most likely already fixed on OSM. Not limited to the latest one or two versions,
|
||||
// because a user can forget to update maps after a new app version has been installed
|
||||
// automatically in the background.
|
||||
uint64_t const kMaxSecondsTillLastVersionUpdate = 3600 * 24 * 31 * 3;
|
||||
uint64_t constexpr kMaxSecondsTillLastVersionUpdate = 3600 * 24 * 31 * 3;
|
||||
// Editing maps older than approximately six months old is disabled, because the device
|
||||
// may have been offline for a long time.
|
||||
uint64_t const kMaxSecondsTillNoEdits = 3600 * 24 * 31 * 6;
|
||||
uint64_t constexpr kMaxSecondsTillNoEdits = 3600 * 24 * 31 * 6;
|
||||
|
||||
void DeleteCountryIndexes(LocalCountryFile const & localFile)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user