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:
@@ -15,14 +15,12 @@ namespace platform
|
||||
// Note. The the maps are deleted from writable dir/|dataDir|/|version| directory.
|
||||
// If |dataDir| is empty (or is not set) the function deletes maps from writable dir.
|
||||
void DeleteDownloaderFilesForCountry(int64_t version, CountryFile const & countryFile);
|
||||
void DeleteDownloaderFilesForCountry(int64_t version, std::string const & dataDir,
|
||||
CountryFile const & countryFile);
|
||||
void DeleteDownloaderFilesForCountry(int64_t version, std::string const & dataDir, CountryFile const & countryFile);
|
||||
|
||||
// Finds all local map files in |directory|. Version of these files is
|
||||
// passed as an argument. Also, performs cleanup described in comment
|
||||
// for FindAllLocalMapsAndCleanup().
|
||||
size_t FindAllLocalMapsInDirectoryAndCleanup(std::string const & directory, int64_t version,
|
||||
int64_t latestVersion,
|
||||
size_t FindAllLocalMapsInDirectoryAndCleanup(std::string const & directory, int64_t version, int64_t latestVersion,
|
||||
std::vector<LocalCountryFile> & localFiles);
|
||||
|
||||
// Finds all local map files in resources and writable directory. For
|
||||
@@ -74,13 +72,13 @@ std::string PrepareDirToDownloadCountry(int64_t version, std::string const & dat
|
||||
/// If |dataDir| is empty (or is not set) the function assumes that maps are in writable dir.
|
||||
/// @{
|
||||
/// @param[in] countryName Actually, same as storage::CountryId, like "Abkhazia".
|
||||
std::string GetFilePath(int64_t version, std::string const & dataDir,
|
||||
std::string const & countryName, MapFileType type);
|
||||
std::string GetFileDownloadPath(int64_t version, std::string const & dataDir,
|
||||
std::string const & countryName, MapFileType type);
|
||||
std::string GetFilePath(int64_t version, std::string const & dataDir, std::string const & countryName,
|
||||
MapFileType type);
|
||||
std::string GetFileDownloadPath(int64_t version, std::string const & dataDir, std::string const & countryName,
|
||||
MapFileType type);
|
||||
|
||||
inline std::string GetFileDownloadPath(int64_t version, std::string const & dataDir,
|
||||
CountryFile const & countryFile, MapFileType type)
|
||||
inline std::string GetFileDownloadPath(int64_t version, std::string const & dataDir, CountryFile const & countryFile,
|
||||
MapFileType type)
|
||||
{
|
||||
return GetFileDownloadPath(version, dataDir, countryFile.GetName(), type);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user