Skip to content
Snippets Groups Projects
Commit 0055efde authored by Guillaume Roguez's avatar Guillaume Roguez
Browse files

sip: re-write re-registration and mem-leak fix

This re-write simplify the code by:
- using lambda for C-scoped callback and to remove static method usage.
- remove unused arguments.
- remove the need of allocation, that could lead to memory-leak.
- make sure to be C++11 standard compliant (see uniform_int_distribution).
- use constexpr than const for true constants
- put constantes at top of file for visibility.

Also fixes a memory-leak by non-delete new-allocated std::pair
during re-registration.

Change-Id: Ib01cbecc025de7773342f071a17fe914264a1e6e
Tuleap: #458
parent 6ee49a31
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment