diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-09-27 23:51:34 +0200 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-09-27 23:51:34 +0200 |
commit | a7a285eb61dd83afc892bc1d64ffe14b9f1426a3 (patch) | |
tree | 08d2efcaec46e5f5702d9e336a0e8ba7e636aff9 /src/Common/Hash.h | |
parent | b40ba0cf91603b695f1f2380cbd39966a458f22f (diff) | |
download | mad-a7a285eb61dd83afc892bc1d64ffe14b9f1426a3.tar mad-a7a285eb61dd83afc892bc1d64ffe14b9f1426a3.zip |
Completely migrate to Unicode String class
Diffstat (limited to 'src/Common/Hash.h')
-rw-r--r-- | src/Common/Hash.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/Hash.h b/src/Common/Hash.h index f92779e..b89eb67 100644 --- a/src/Common/Hash.h +++ b/src/Common/Hash.h @@ -91,12 +91,12 @@ class MAD_COMMON_EXPORT Hash { } static std::vector<boost::uint8_t> hash(const Core::String &in, unsigned int method) throw (Core::Exception) { - std::string str = in.extractUTF8(); + std::string str = in.toUTF8(); return hash(std::vector<boost::uint8_t>(str.begin(), str.end()), method); } static std::vector<boost::uint8_t> hash(const Core::String &in, const Core::String &method) throw (Core::Exception) { - std::string str = in.extractUTF8(); + std::string str = in.toUTF8(); return hash(std::vector<boost::uint8_t>(str.begin(), str.end()), method); } }; |