mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-25 23:06:10 -05:00
remove unnecessary std::replace
This commit is contained in:
parent
591d2ad864
commit
ebc5a116b2
@ -67,7 +67,8 @@ std::string publicKeyFromPrivate(std::string const &priv)
|
|||||||
// creat a copy to work on, need to convert it to standard base64
|
// creat a copy to work on, need to convert it to standard base64
|
||||||
auto priv_copy(priv);
|
auto priv_copy(priv);
|
||||||
std::replace(priv_copy.begin(), priv_copy.end(), '~', '/');
|
std::replace(priv_copy.begin(), priv_copy.end(), '~', '/');
|
||||||
std::replace(priv_copy.begin(), priv_copy.end(), '-', '+');
|
// replacing the - with a + is not necessary, as RsBase64 can handle base64url encoding, too
|
||||||
|
// std::replace(copy.begin(), copy.end(), '-', '+');
|
||||||
|
|
||||||
// get raw data
|
// get raw data
|
||||||
std::vector<uint8_t> dataPriv;
|
std::vector<uint8_t> dataPriv;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user