aboutsummaryrefslogtreecommitdiff
path: root/src/modchannels.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-02-23 20:02:58 +0100
committersfan5 <sfan5@live.de>2022-02-26 14:39:41 +0100
commit04bd253390cc6c67a555e4837e7e48d524fdf014 (patch)
tree5b253a7ab2799686da9bdc85083e264707d06b4d /src/modchannels.cpp
parent7db751df3bc4e3b3aff80cdacd2883f3a7a0940b (diff)
downloadminetest-04bd253390cc6c67a555e4837e7e48d524fdf014.tar.xz
Move the codebase to C++14
Diffstat (limited to 'src/modchannels.cpp')
-rw-r--r--src/modchannels.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modchannels.cpp b/src/modchannels.cpp
index 301dcb092..9626e8e0c 100644
--- a/src/modchannels.cpp
+++ b/src/modchannels.cpp
@@ -88,8 +88,7 @@ bool ModChannelMgr::canWriteOnChannel(const std::string &channel) const
void ModChannelMgr::registerChannel(const std::string &channel)
{
- m_registered_channels[channel] =
- std::unique_ptr<ModChannel>(new ModChannel(channel));
+ m_registered_channels[channel] = std::make_unique<ModChannel>(channel);
}
bool ModChannelMgr::setChannelState(const std::string &channel, ModChannelState state)