Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrachytski <siarhei.rachytski@gmail.com>2012-04-17 18:13:40 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:37:28 +0300
commit465184b9d8317d4829ed4060fb0b1d4698ada053 (patch)
tree94aa802cffc0e5be5d94b20cf74bfe4de3a2c52b /platform/platform.hpp
parent7964b599dd0728adc682bd79de147ca5272b728a (diff)
[android] implemented UniqueClientId
Diffstat (limited to 'platform/platform.hpp')
-rw-r--r--platform/platform.hpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/platform/platform.hpp b/platform/platform.hpp
index 7cb1be9269..ae49facd59 100644
--- a/platform/platform.hpp
+++ b/platform/platform.hpp
@@ -35,17 +35,10 @@ protected:
/// Internal function to use files from writable dir
/// if they override the same file in the resources dir
- string ReadPathForFile(string const & file) const
- {
- string fullPath = m_writableDir + file;
- if (!IsFileExistsByFullPath(fullPath))
- {
- fullPath = m_resourcesDir + file;
- if (!IsFileExistsByFullPath(fullPath))
- MYTHROW(FileAbsentException, ("File doesn't exist", fullPath));
- }
- return fullPath;
- }
+ string ReadPathForFile(string const & file) const;
+
+ /// Hash some unique string into uniform format.
+ static string HashUniqueID(string const & s);
public:
Platform();