mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-23 06:31:20 -04:00
fixed a few bugs in new TorManager
This commit is contained in:
parent
a757419d65
commit
7c77cfd603
7 changed files with 23 additions and 15 deletions
|
@ -32,6 +32,8 @@ public:
|
|||
void append(const ByteArray& b) { for(auto c:b) push_back(c); }
|
||||
void append(const char *b) { for(uint32_t n=0;b[n]!=0;++n) push_back(b[n]); }
|
||||
|
||||
template<class T> void append(const T) = delete;// Prevents any implicit when calling the preceding functions which actually causes real bugs.
|
||||
|
||||
ByteArray& operator+=(const ByteArray& b) { for(auto c:b) push_back(c); return *this; }
|
||||
ByteArray& operator+=(const char *b) { for(uint32_t n=0;b[n]!=0;++n) push_back(b[n]); return *this;}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue