From b2f86045d3b3dc2a454f127f186429b60e493072 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 6 Feb 2015 23:36:02 +0000 Subject: merge from branch git-svn-id: http://svn.miranda-ng.org/main/trunk@12029 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WhatsAPI++/utilities.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'protocols/WhatsApp/src/WhatsAPI++/utilities.h') diff --git a/protocols/WhatsApp/src/WhatsAPI++/utilities.h b/protocols/WhatsApp/src/WhatsAPI++/utilities.h index 4df6fde13d..5f5dd5713a 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/utilities.h +++ b/protocols/WhatsApp/src/WhatsAPI++/utilities.h @@ -38,20 +38,20 @@ using namespace std; // these functions must be declared somewhere in the same linking module std::string base64_encode(void*, size_t); -void md5_string(const std::string& data, unsigned char digest[16]); +void md5_string(const std::string &data, unsigned char digest[16]); namespace Utilities{ string getMcc(); string getMnc(); string reverseString(const string& str); - string processIdentity(const std::string& password); + string processIdentity(const std::string &password); int64_t randLong(); int64_t absLong(int64_t num); string str(int64_t number, int radix); std::string itoa(int value, unsigned int base); std::string intToStr(int i); std::string doubleToStr(double d); - long long parseLongLong(const std::string& str); + long long parseLongLong(const std::string &str); time_t parseBBDate(const string& s); long long getCurrentTimeMillis(); std::string bytesToHex(unsigned char* bytes, int length); @@ -60,11 +60,11 @@ namespace Utilities{ bool saveBytesToFile(const string& data, const string& filePath); bool saveBytesToFile(const std::vector& data, const string& filePath); string removeWaDomainFromJid(const string& jid); - string getNameFromPath(const std::string& path); + string getNameFromPath(const std::string &path); vector* loadFileToBytes(const string& path); - bool fileExists(const std::string& path); - std::vector* getChallengeData(const std::string& file); - bool saveChallengeData(const std::vector& data, const std::string& file); - std::string utf8_to_utf16(const std::string& utf8); + bool fileExists(const std::string &path); + std::vector* getChallengeData(const std::string &file); + bool saveChallengeData(const std::vector& data, const std::string &file); + std::string utf8_to_utf16(const std::string &utf8); } #endif -- cgit v1.2.3