use shared_ptr for local LeaseSet

This commit is contained in:
orignal 2015-04-07 15:02:00 -04:00
parent 3a26383c4d
commit 8c47bf9dd3
7 changed files with 10 additions and 18 deletions

View file

@ -72,7 +72,7 @@ namespace i2p
void SetLeaseSetUpdated () {};
// implements GarlicDestination
const i2p::data::LeaseSet * GetLeaseSet () { return nullptr; };
std::shared_ptr<const i2p::data::LeaseSet> GetLeaseSet () { return nullptr; };
std::shared_ptr<i2p::tunnel::TunnelPool> GetTunnelPool () const;
void HandleI2NPMessage (const uint8_t * buf, size_t len, std::shared_ptr<i2p::tunnel::InboundTunnel> from);