remove duplicate allocation
This commit is contained in:
parent
4fd1c4de29
commit
ac1c5d64d7
|
@ -53,7 +53,7 @@ void Receiver::dispatch(const std::shared_ptr<Message> msg) const
|
|||
std::istringstream strm(msg->address_pattern);
|
||||
strm.seekg(1); // skip leading '/'
|
||||
for (std::string name; std::getline(strm, name, '/');)
|
||||
patterns.emplace_back(std::string(name));
|
||||
patterns.push_back(name);
|
||||
address_space_->dispatch(patterns, msg);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue