mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-23 13:57:16 +01:00
Minor changes based on cppcheck output.
This commit is contained in:
parent
62ac53563c
commit
4ce7b0e9ef
2
Daemon.h
2
Daemon.h
|
@ -53,6 +53,8 @@ namespace i2p
|
||||||
class DaemonLinux : public Daemon_Singleton
|
class DaemonLinux : public Daemon_Singleton
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
DeamonLinux() = default;
|
||||||
|
|
||||||
static DaemonLinux& Instance()
|
static DaemonLinux& Instance()
|
||||||
{
|
{
|
||||||
static DaemonLinux instance;
|
static DaemonLinux instance;
|
||||||
|
|
|
@ -160,6 +160,7 @@ namespace tunnel
|
||||||
memcpy (buf + offset, other.buf + other.offset, other.GetLength ());
|
memcpy (buf + offset, other.buf + other.offset, other.GetLength ());
|
||||||
len = offset + other.GetLength ();
|
len = offset + other.GetLength ();
|
||||||
from = other.from;
|
from = other.from;
|
||||||
|
maxLen = other.maxLen;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -287,7 +287,7 @@ namespace data
|
||||||
if (m_Caps & eReachable) caps += CAPS_FLAG_REACHABLE; // reachable
|
if (m_Caps & eReachable) caps += CAPS_FLAG_REACHABLE; // reachable
|
||||||
if (m_Caps & eUnreachable) caps += CAPS_FLAG_UNREACHABLE; // unreachable
|
if (m_Caps & eUnreachable) caps += CAPS_FLAG_UNREACHABLE; // unreachable
|
||||||
|
|
||||||
SetProperty ("caps", caps.c_str ());
|
SetProperty ("caps", caps);
|
||||||
}
|
}
|
||||||
|
|
||||||
void RouterInfo::WriteToStream (std::ostream& s)
|
void RouterInfo::WriteToStream (std::ostream& s)
|
||||||
|
|
|
@ -87,6 +87,7 @@ namespace data
|
||||||
|
|
||||||
RouterInfo (const std::string& fullPath);
|
RouterInfo (const std::string& fullPath);
|
||||||
RouterInfo (): m_Buffer (nullptr) { };
|
RouterInfo (): m_Buffer (nullptr) { };
|
||||||
|
|
||||||
RouterInfo (const RouterInfo& ) = default;
|
RouterInfo (const RouterInfo& ) = default;
|
||||||
RouterInfo& operator=(const RouterInfo& ) = default;
|
RouterInfo& operator=(const RouterInfo& ) = default;
|
||||||
RouterInfo (const uint8_t * buf, int len);
|
RouterInfo (const uint8_t * buf, int len);
|
||||||
|
|
1
TODO
1
TODO
|
@ -1,5 +1,6 @@
|
||||||
Short-term refactoring:
|
Short-term refactoring:
|
||||||
- SSUSession:637, SSUSession:635 get rid of casting to SSUHeader
|
- SSUSession:637, SSUSession:635 get rid of casting to SSUHeader
|
||||||
|
- Idenity.cpp:156 check for self asignment
|
||||||
|
|
||||||
Long-term refactoring:
|
Long-term refactoring:
|
||||||
- Rely on a library for TLS and SSL.
|
- Rely on a library for TLS and SSL.
|
||||||
|
|
Loading…
Reference in a new issue