diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-07-27 21:44:54 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-07-27 21:44:54 +0900 |
| commit | 7b86b294c97fbe3eba66b5b994a689598fa0879b (patch) | |
| tree | db0cbdbc04d567126e04d30739fd88ecead4788a /src/Checksum.h | |
| parent | ce101f5ad29bfb37d93f28a117e1963968a061c4 (diff) | |
Consistent naming scheme for hash type and digest.
Diffstat (limited to 'src/Checksum.h')
| -rw-r--r-- | src/Checksum.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/Checksum.h b/src/Checksum.h index ea198733..f95d9c68 100644 --- a/src/Checksum.h +++ b/src/Checksum.h @@ -43,26 +43,26 @@ namespace aria2 { class Checksum { private: - std::string algo_; - std::string messageDigest_; + std::string hashType_; + std::string digest_; public: // messageDigest_ is ascii hexadecimal notation. - Checksum(const std::string& algo, const std::string& messageDigest); + Checksum(const std::string& hashType, const std::string& digest); Checksum(); ~Checksum(); bool isEmpty() const; - void setMessageDigest(const std::string& md); - const std::string& getMessageDigest() const + void setDigest(const std::string& md); + const std::string& getDigest() const { - return messageDigest_; + return digest_; } - void setAlgo(const std::string& algo); - const std::string& getAlgo() const + void setHashType(const std::string& type); + const std::string& getHashType() const { - return algo_; + return hashType_; } void swap(Checksum& other); |
