diff options
author | vng <viktor.govako@gmail.com> | 2015-01-14 18:01:18 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:36:34 +0300 |
commit | 928f27faa24d6af5e4c7e1e38cfc35edd4323a63 (patch) | |
tree | c496e29e3c28d8084c7d0160a235fd2ecda4c3ec /coding/file_container.hpp | |
parent | 36d59c41eaa9c77dc8cedaa245d3bd7d511117e5 (diff) |
Minor code fixes.
Diffstat (limited to 'coding/file_container.hpp')
-rw-r--r-- | coding/file_container.hpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/coding/file_container.hpp b/coding/file_container.hpp index b9d527f78e..9137b15786 100644 --- a/coding/file_container.hpp +++ b/coding/file_container.hpp @@ -123,7 +123,8 @@ private: class FilesMappingContainer : public FilesContainerBase { public: - FilesMappingContainer(); + /// Do nothing by default, call Open to attach to file. + FilesMappingContainer() = default; explicit FilesMappingContainer(string const & fName); ~FilesMappingContainer(); @@ -182,12 +183,12 @@ public: private: string m_name; - #ifdef OMIM_OS_WINDOWS - void * m_hFile; - void * m_hMapping; - #else - int m_fd; - #endif +#ifdef OMIM_OS_WINDOWS + void * m_hFile = (void *)-1; + void * m_hMapping = (void *)-1; +#else + int m_fd = -1; +#endif }; class FilesContainerW : public FilesContainerBase |