Commit b091b359 authored by rmrf's avatar rmrf
Browse files

Signal and SignalContainer needs updates

parent 8b834694
......@@ -54,8 +54,8 @@ void ModuleDecl::addSignals(const FindSignals::signalMapType & signal_map) {
// It is important to create new objects.
// This is because the objects created during Find*
// may go outside scope, and free up allocated memory.
SignalContainer *sc = new SignalContainer(*sit.second);
Signal *sig = new Signal(name, sc);
SignalContainer *sc{ new SignalContainer(*sit.second) };
Signal *sig { new Signal(name, sc) };
_signals.insert( ModuleDecl::signalPairType(name, sig) );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment