mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-25 23:49:35 -05:00
remove unnecessary std::replace
This commit is contained in:
parent
86c30a01dd
commit
3d784e8871
@ -33,8 +33,6 @@
|
||||
#include "util/rsprint.h"
|
||||
#include "util/rsrandom.h"
|
||||
|
||||
#include "util/rsdebuglevel4.h"
|
||||
|
||||
static const std::string kConfigKeyBOBEnable = "BOB_ENABLE";
|
||||
static const std::string kConfigKeyBOBKey = "BOB_KEY";
|
||||
static const std::string kConfigKeyBOBAddr = "BOB_ADDR";
|
||||
|
@ -19,7 +19,8 @@ std::string keyToBase32Addr(const std::string &key)
|
||||
|
||||
// replace I2P specific chars
|
||||
std::replace(copy.begin(), copy.end(), '~', '/');
|
||||
std::replace(copy.begin(), copy.end(), '-', '+');
|
||||
// replacing the - with a + is not necessary, as RsBase64 can handle base64url encoding, too
|
||||
// std::replace(copy.begin(), copy.end(), '-', '+');
|
||||
|
||||
// decode
|
||||
std::vector<uint8_t> bin;
|
||||
|
Loading…
Reference in New Issue
Block a user