From 8d9b0e75700d35a00066c6dad8670fa8e5a438a3 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 6 Feb 2020 01:25:25 +0000 Subject: In C++11 [io]fstream has std::string constructors; use them. --- src/modules/m_permchannels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_permchannels.cpp') 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); -- cgit v1.3.1-10-gc9f91