From c7f6ffccbdefba86afbe20b7f4d668fff2aaecd4 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 1 Oct 2022 22:02:45 +0100 Subject: Replace *foo.rbegin() with foo.end(). --- include/clientprotocolmsg.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'include/clientprotocolmsg.h') diff --git a/include/clientprotocolmsg.h b/include/clientprotocolmsg.h index 30dca847d..78ebf9bf4 100644 --- a/include/clientprotocolmsg.h +++ b/include/clientprotocolmsg.h @@ -266,8 +266,7 @@ class ClientProtocol::Messages::Mode if (ret.length() + 1 + paramlength > maxlinelen) { // Mode sequence is getting too long - const char c = *ret.rbegin(); - if ((c == '+') || (c == '-')) + if ((ret.back() == '+') || (ret.back() == '-')) ret.erase(ret.size()-1); break; } -- cgit v1.3.1-10-gc9f91