From 9242cbc94746fc871e71c20b6977e1bb2cfe9c3e Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Sun, 17 Aug 2014 18:57:11 +0000 Subject: 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 --- protocols/Tox/src/tox_utils.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protocols/Tox/src/tox_utils.cpp') 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 CToxProto::HexStringToData(std::string hex) std::string CToxProto::DataToHexString(std::vector 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(data[i]); + oss << std::setw(2) << static_cast(data[i]); } return oss.str(); } -- cgit v1.2.3