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:
authorYuri Gorshenin <y@maps.me>2017-05-25 16:06:32 +0300
committerYuri Gorshenin <mipt.vi002@gmail.com>2017-07-05 13:32:16 +0300
commit790817bde6afe92bcd4fe867622474514ee490b0 (patch)
tree7ef14f62fedb3ecbe8f2b37a4d1fb31751c0f251 /platform
parent12f430e690a420631858e8d786076f1c32b6e80d (diff)
Flag for non matched ids + relaxed restriction on single edge approximation.
Diffstat (limited to 'platform')
-rw-r--r--platform/platform.cpp4
-rw-r--r--platform/platform.hpp3
2 files changed, 4 insertions, 3 deletions
diff --git a/platform/platform.cpp b/platform/platform.cpp
index 1746f3fd91..aa679268fb 100644
--- a/platform/platform.cpp
+++ b/platform/platform.cpp
@@ -179,10 +179,10 @@ void Platform::GetFilesByType(string const & directory, unsigned typeMask,
}
// static
-bool Platform::IsDirectory(string const & directory)
+bool Platform::IsDirectory(string const & path)
{
EFileType fileType;
- if (GetFileType(directory, fileType) != ERR_OK)
+ if (GetFileType(path, fileType) != ERR_OK)
return false;
return fileType == FILE_TYPE_DIRECTORY;
}
diff --git a/platform/platform.hpp b/platform/platform.hpp
index 78fe9d76a1..28b8291808 100644
--- a/platform/platform.hpp
+++ b/platform/platform.hpp
@@ -165,7 +165,8 @@ public:
TFilesWithType & outFiles);
static bool IsDirectoryEmpty(string const & directory);
- static bool IsDirectory(string const & directory);
+ // Returns true if |path| refers to a directory. Returns false otherwise or on error.
+ static bool IsDirectory(string const & path);
static EError GetFileType(string const & path, EFileType & type);