aboutsummaryrefslogtreecommitdiff
path: root/include/clientprotocolmsg.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-10-01 22:02:45 +0100
committerGravatar Sadie Powell2022-10-01 22:15:23 +0100
commitc7f6ffccbdefba86afbe20b7f4d668fff2aaecd4 (patch)
tree087572776e63e04c8f7871eba5282ab95aed180d /include/clientprotocolmsg.h
parentRelease v4.0.0 alpha 15. (diff)
Replace *foo.rbegin() with foo.end().
Diffstat (limited to 'include/clientprotocolmsg.h')
-rw-r--r--include/clientprotocolmsg.h3
1 files changed, 1 insertions, 2 deletions
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;
}