diff options
| author | 2020-10-31 16:55:18 +0000 | |
|---|---|---|
| committer | 2020-10-31 16:55:18 +0000 | |
| commit | 4176261edf7023dcc295daac2c722b93dae374f8 (patch) | |
| tree | b97d000a763c3dee9f611341bb81dbb8eaa3d7de /src/serializable.cpp | |
| parent | Merge branch 'insp3' into master. (diff) | |
Convert OperInfo from reference<> to std::shared_ptr<>.
Diffstat (limited to 'src/serializable.cpp')
| -rw-r--r-- | src/serializable.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serializable.cpp b/src/serializable.cpp index cec44b008..92c483607 100644 --- a/src/serializable.cpp +++ b/src/serializable.cpp @@ -161,7 +161,7 @@ bool User::Deserialize(Serializable::Data& data) if (iter != ServerInstance->Config->OperTypes.end()) oper = iter->second; else - oper = new OperInfo(user_oper); + oper = std::make_shared<OperInfo>(user_oper); irc::sockets::sockaddrs sa; if (irc::sockets::aptosa(client_addr, client_port, sa) || irc::sockets::untosa(client_addr, sa)) |
