diff options
| author | 2020-02-06 01:25:25 +0000 | |
|---|---|---|
| committer | 2020-02-06 01:53:16 +0000 | |
| commit | 8d9b0e75700d35a00066c6dad8670fa8e5a438a3 (patch) | |
| tree | 98696b3d05a5bc2d56f17b606d1f32116c1adace /src/modules/m_permchannels.cpp | |
| parent | Make WritePID read directly from the config. (diff) | |
| download | inspircd++-8d9b0e75700d35a00066c6dad8670fa8e5a438a3.tar.gz inspircd++-8d9b0e75700d35a00066c6dad8670fa8e5a438a3.tar.bz2 inspircd++-8d9b0e75700d35a00066c6dad8670fa8e5a438a3.zip | |
In C++11 [io]fstream has std::string constructors; use them.
Diffstat (limited to 'src/modules/m_permchannels.cpp')
| -rw-r--r-- | src/modules/m_permchannels.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp index 3863470c8..1b572a574 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -69,7 +69,7 @@ static bool WriteDatabase(PermChannel& permchanmode, Module* mod, bool save_list return true; std::string permchannelsnewconf = permchannelsconf + ".tmp"; - std::ofstream stream(permchannelsnewconf.c_str()); + std::ofstream stream(permchannelsnewconf); if (!stream.is_open()) { ServerInstance->Logs.Log(MODNAME, LOG_DEFAULT, "Cannot create database \"%s\"! %s (%d)", permchannelsnewconf.c_str(), strerror(errno), errno); |
