diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:39:47 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2015-12-27 18:40:08 +0900 |
| commit | b1132d6b10cd3791b9529d7031d723fd0e2d8215 (patch) | |
| tree | 9ce465b42bf09372118335c7c619bb2b41869eaf /src/SHA1IOFile.cc | |
| parent | 4abad2f64c9ff80144a61c5a9c2bea144852b883 (diff) | |
make clang-format using clang-format-3.6
Diffstat (limited to 'src/SHA1IOFile.cc')
| -rw-r--r-- | src/SHA1IOFile.cc | 39 |
1 files changed, 8 insertions, 31 deletions
diff --git a/src/SHA1IOFile.cc b/src/SHA1IOFile.cc index 9abfb789..18497ec4 100644 --- a/src/SHA1IOFile.cc +++ b/src/SHA1IOFile.cc @@ -38,14 +38,9 @@ namespace aria2 { -SHA1IOFile::SHA1IOFile() : sha1_(MessageDigest::sha1()) -{ -} +SHA1IOFile::SHA1IOFile() : sha1_(MessageDigest::sha1()) {} -std::string SHA1IOFile::digest() -{ - return sha1_->digest(); -} +std::string SHA1IOFile::digest() { return sha1_->digest(); } size_t SHA1IOFile::onRead(void* ptr, size_t count) { @@ -72,34 +67,16 @@ int SHA1IOFile::onVprintf(const char* format, va_list va) return -1; } -int SHA1IOFile::onFlush() -{ - return 0; -} +int SHA1IOFile::onFlush() { return 0; } -int SHA1IOFile::onClose() -{ - return 0; -} +int SHA1IOFile::onClose() { return 0; } -bool SHA1IOFile::onSupportsColor() -{ - return false; -} +bool SHA1IOFile::onSupportsColor() { return false; } -bool SHA1IOFile::isError() const -{ - return false; -} +bool SHA1IOFile::isError() const { return false; } -bool SHA1IOFile::isEOF() const -{ - return false; -} +bool SHA1IOFile::isEOF() const { return false; } -bool SHA1IOFile::isOpen() const -{ - return true; -} +bool SHA1IOFile::isOpen() const { return true; } } // namespace aria2 |
