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
path: root/coding
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2012-10-12 00:08:31 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:45:11 +0300
commit0d7ab1801d6f8e0aa7d277568b20e8adb4d6073c (patch)
tree58a882f14f731c1a23982bdb4273a0f64127c132 /coding
parent7ce5a1282179d15f50396dd639645736a71d7f68 (diff)
Minor changes.
Diffstat (limited to 'coding')
-rw-r--r--coding/internal/file_data.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/coding/internal/file_data.cpp b/coding/internal/file_data.cpp
index d86113bca2..1e19f26644 100644
--- a/coding/internal/file_data.cpp
+++ b/coding/internal/file_data.cpp
@@ -242,8 +242,9 @@ bool CopyFile(string const & fOld, string const & fNew)
if (ifs.is_open() && ofs.is_open())
{
ofs << ifs.rdbuf();
+ ofs.flush();
- if (ofs.bad() || ofs.fail())
+ if (ofs.fail())
{
// Well, specification says that exception is thrown for critical errors.
// So just log stream fail state and continue.