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:
authorvng <viktor.govako@gmail.com>2012-11-16 21:11:39 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:47:00 +0300
commit7fca6a746e5e38b3c684b822984b4ee1b246c4d1 (patch)
tree029baeab823811e825cfde618f5df78ff0547ba5 /platform
parent106b0b58168d456e25510e4aa6fb01eeecb36631 (diff)
[android] Fix bug with correct storage path for downloading.
Diffstat (limited to 'platform')
-rw-r--r--platform/platform.hpp2
-rw-r--r--platform/platform_unix_impl.cpp2
-rw-r--r--platform/platform_win.cpp2
3 files changed, 3 insertions, 3 deletions
diff --git a/platform/platform.hpp b/platform/platform.hpp
index 0f2a056535..c47ff5beb9 100644
--- a/platform/platform.hpp
+++ b/platform/platform.hpp
@@ -96,7 +96,7 @@ public:
STORAGE_DISCONNECTED,
NOT_ENOUGH_SPACE
};
- TStorageStatus GetWritableStorageStatus(uint64_t neededSize);
+ TStorageStatus GetWritableStorageStatus(uint64_t neededSize) const;
/// @name Functions for concurrent tasks.
//@{
diff --git a/platform/platform_unix_impl.cpp b/platform/platform_unix_impl.cpp
index 6f50e7eee0..d16291c1e7 100644
--- a/platform/platform_unix_impl.cpp
+++ b/platform/platform_unix_impl.cpp
@@ -31,7 +31,7 @@ bool Platform::GetFileSizeByFullPath(string const & filePath, uint64_t & size)
else return false;
}
-Platform::TStorageStatus Platform::GetWritableStorageStatus(uint64_t neededSize)
+Platform::TStorageStatus Platform::GetWritableStorageStatus(uint64_t neededSize) const
{
struct statfs st;
int const ret = statfs(m_writableDir.c_str(), &st);
diff --git a/platform/platform_win.cpp b/platform/platform_win.cpp
index ac57d3ad2e..399caf370a 100644
--- a/platform/platform_win.cpp
+++ b/platform/platform_win.cpp
@@ -122,7 +122,7 @@ void Platform::RunAsync(TFunctor const & fn, Priority p)
fn();
}
-Platform::TStorageStatus Platform::GetWritableStorageStatus(uint64_t neededSize)
+Platform::TStorageStatus Platform::GetWritableStorageStatus(uint64_t neededSize) const
{
ULARGE_INTEGER freeSpace;
if (0 == ::GetDiskFreeSpaceExA(m_writableDir.c_str(), &freeSpace, NULL, NULL))