| 711 | } |
| 712 | |
| 713 | LocalFilePtr Storage::GetLatestLocalFile(CountryFile const & countryFile) const |
| 714 | { |
| 715 | CHECK_THREAD_CHECKER(m_threadChecker, ()); |
| 716 | |
| 717 | CountryId const & countryId = FindCountryIdByFile(countryFile.GetName()); |
| 718 | if (IsLeaf(countryId)) |
| 719 | { |
| 720 | LocalFilePtr localFile = GetLatestLocalFile(countryId); |
| 721 | if (localFile) |
| 722 | return localFile; |
| 723 | } |
| 724 | |
| 725 | auto const it = m_localFilesForFakeCountries.find(countryFile); |
| 726 | if (it != m_localFilesForFakeCountries.end()) |
| 727 | return it->second; |
| 728 | |
| 729 | return LocalFilePtr(); |
| 730 | } |
| 731 | |
| 732 | LocalFilePtr Storage::GetLatestLocalFile(CountryId const & countryId) const |
| 733 | { |