diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:14:37 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:14:37 +0200 |
commit | 8bf668665b107469086f16cb8ad23e47d479d2b4 (patch) | |
tree | 66a91ef06a8caa7cd6819dcbe1860693d3eda8d5 /library/binary.cpp | |
parent | 3.21 (diff) | |
download | FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.gz FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.bz2 FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.zip |
4.0
Diffstat (limited to 'library/binary.cpp')
-rw-r--r-- | library/binary.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/library/binary.cpp b/library/binary.cpp index 1fd8c55f..1e043d33 100644 --- a/library/binary.cpp +++ b/library/binary.cpp @@ -38,10 +38,7 @@ public: bufSize /= 2; } - operator size_t() const - { - return bufSize; - } + operator size_t() const { return bufSize; } private: static const size_t BUFFER_SIZE_MIN = 128 * 1024; @@ -69,13 +66,15 @@ private: bool zen::filesHaveSameContent(const Zstring& filename1, const Zstring& filename2, CompareCallback& callback) { - FileInput file1(filename1); //throw (FileError) - FileInput file2(filename2); //throw (FileError) + FileInput file1(filename1); //throw FileError + FileInput file2(filename2); //throw FileError static boost::thread_specific_ptr<std::vector<char>> cpyBuf1; static boost::thread_specific_ptr<std::vector<char>> cpyBuf2; - if (!cpyBuf1.get()) cpyBuf1.reset(new std::vector<char>()); - if (!cpyBuf2.get()) cpyBuf2.reset(new std::vector<char>()); + if (!cpyBuf1.get()) + cpyBuf1.reset(new std::vector<char>()); + if (!cpyBuf2.get()) + cpyBuf2.reset(new std::vector<char>()); std::vector<char>& memory1 = *cpyBuf1; std::vector<char>& memory2 = *cpyBuf2; |