diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-08-17 18:57:11 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-08-17 18:57:11 +0000 |
commit | 9242cbc94746fc871e71c20b6977e1bb2cfe9c3e (patch) | |
tree | 829731785ed03a9a8bf4e55a34828e0ae3edd2d2 /protocols/Tox/src/tox_utils.cpp | |
parent | ae4baba8780a843d17e3403a618775f31f9df7f9 (diff) |
Tox:
- fixed friend names
- some fixes with profile changing
git-svn-id: http://svn.miranda-ng.org/main/trunk@10217 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_utils.cpp')
-rw-r--r-- | protocols/Tox/src/tox_utils.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_utils.cpp b/protocols/Tox/src/tox_utils.cpp index 71efde31d1..7c321ac2c7 100644 --- a/protocols/Tox/src/tox_utils.cpp +++ b/protocols/Tox/src/tox_utils.cpp @@ -117,10 +117,10 @@ std::vector<uint8_t> CToxProto::HexStringToData(std::string hex) std::string CToxProto::DataToHexString(std::vector<uint8_t> data)
{
std::ostringstream oss;
- oss << std::setfill('0');
+ oss << std::hex << std::uppercase << std::setfill('0');
for (int i = 0; i < data.size(); i++)
{
- oss << std::setw(2) << std::hex << std::uppercase << static_cast<int>(data[i]);
+ oss << std::setw(2) << static_cast<int>(data[i]);
}
return oss.str();
}
|