mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
use modern c++
This commit is contained in:
parent
ba23b9ad51
commit
8323b94a6a
@ -39,10 +39,7 @@ std::string keyToBase32Addr(const std::string &key)
|
||||
}
|
||||
|
||||
const std::string makeOption(const std::string &lhs, const int8_t &rhs) {
|
||||
// convert number to int
|
||||
std::ostringstream oss;
|
||||
oss << (int)rhs;
|
||||
return lhs + "=" + oss.str();
|
||||
return lhs + "=" + std::to_string(rhs);
|
||||
}
|
||||
|
||||
uint16_t readTwoBytesBE(std::vector<uint8_t>::const_iterator &p)
|
||||
|
Loading…
Reference in New Issue
Block a user