Update namespace for null_deleter

This commit is contained in:
Dawid Drozd 2017-06-12 16:03:22 +02:00
parent d14e07bd3e
commit 9a459caa30

View File

@ -4,6 +4,15 @@
#include "EventCollector.h"
namespace
{
void null_deleter(Dexode::Notifier*)
{
}
}
namespace Dexode
{
@ -13,10 +22,6 @@ EventCollector::EventCollector(const std::shared_ptr<Notifier>& notifier)
assert(_notifier);
}
void null_deleter(Notifier*)
{
}
//Maybe ugly but hey ;) Less code and simply i can :D
EventCollector::EventCollector(Notifier& notifier)
: _notifier(&notifier, &null_deleter)