diff options
author | Alin Rus <alin@fsck.ro> | 2018-01-14 18:15:31 +0100 |
---|---|---|
committer | Alin Rus <alin@fsck.ro> | 2018-02-13 20:47:55 +0100 |
commit | 19ac86e2063432fca1f21fd3ef9770e7bde5d0ff (patch) | |
tree | 3ac58066929e7945cc23ff720b7cdcce09f29912 /src/utilstrencodings.cpp | |
parent | f4f4f51f1a940a239c9b406fe3b362bf3303cbce (diff) |
Remove useless string initialization.
Diffstat (limited to 'src/utilstrencodings.cpp')
-rw-r--r-- | src/utilstrencodings.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utilstrencodings.cpp b/src/utilstrencodings.cpp index 52158e9804..ebafe078f4 100644 --- a/src/utilstrencodings.cpp +++ b/src/utilstrencodings.cpp @@ -127,7 +127,7 @@ std::string EncodeBase64(const unsigned char* pch, size_t len) { static const char *pbase64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; - std::string strRet = ""; + std::string strRet; strRet.reserve((len+2)/3*4); int mode=0, left=0; @@ -267,7 +267,7 @@ std::string EncodeBase32(const unsigned char* pch, size_t len) { static const char *pbase32 = "abcdefghijklmnopqrstuvwxyz234567"; - std::string strRet=""; + std::string strRet; strRet.reserve((len+4)/5*8); int mode=0, left=0; |