From ee633a943cccb5032f66eff9c1e28d633f358127 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 1 Oct 2022 22:09:16 +0100 Subject: Replace foo.erase(foo.{size|end}()-1) with foo.pop_back(). --- 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 37d088934..ecd653d5e 100644 --- a/src/modules/m_permchannels.cpp +++ b/src/modules/m_permchannels.cpp @@ -118,7 +118,7 @@ static bool WriteDatabase(PermChannel& permchanmode, Module* mod, bool save_list if (!params.empty()) { // Remove the last space - params.erase(params.end()-1); + params.pop_back(); // If there is at least a space in chanmodes (that is, a non-listmode has a parameter) // insert the listmode mode letters before the space. Otherwise just append them. -- cgit v1.3.1-10-gc9f91