mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-26 07:55:44 -04:00
remove unnecessary std::replace
This commit is contained in:
parent
86c30a01dd
commit
3d784e8871
2 changed files with 2 additions and 3 deletions
|
@ -33,8 +33,6 @@
|
||||||
#include "util/rsprint.h"
|
#include "util/rsprint.h"
|
||||||
#include "util/rsrandom.h"
|
#include "util/rsrandom.h"
|
||||||
|
|
||||||
#include "util/rsdebuglevel4.h"
|
|
||||||
|
|
||||||
static const std::string kConfigKeyBOBEnable = "BOB_ENABLE";
|
static const std::string kConfigKeyBOBEnable = "BOB_ENABLE";
|
||||||
static const std::string kConfigKeyBOBKey = "BOB_KEY";
|
static const std::string kConfigKeyBOBKey = "BOB_KEY";
|
||||||
static const std::string kConfigKeyBOBAddr = "BOB_ADDR";
|
static const std::string kConfigKeyBOBAddr = "BOB_ADDR";
|
||||||
|
|
|
@ -19,7 +19,8 @@ std::string keyToBase32Addr(const std::string &key)
|
||||||
|
|
||||||
// replace I2P specific chars
|
// replace I2P specific chars
|
||||||
std::replace(copy.begin(), copy.end(), '~', '/');
|
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
|
// decode
|
||||||
std::vector<uint8_t> bin;
|
std::vector<uint8_t> bin;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue