From cf628fb946a06b5a974534505c5ecfbbc153dd70 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 14 Oct 2022 12:20:50 +0100 Subject: Fix a harmless todo in clientprotocolmsg. --- include/clientprotocolmsg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/clientprotocolmsg.h') diff --git a/include/clientprotocolmsg.h b/include/clientprotocolmsg.h index e4ff17720..7c6c809de 100644 --- a/include/clientprotocolmsg.h +++ b/include/clientprotocolmsg.h @@ -297,9 +297,9 @@ public: */ static std::string ToModeLetters(const Modes::ChangeList& changelist) { - // TODO: This assumes that std::string::max_size() >= UINT_MAX + std::string dummystr; Modes::ChangeList::List::const_iterator dummy; - return ToModeLetters(changelist.getlist(), UINT_MAX, changelist.getlist().begin(), dummy); + return ToModeLetters(changelist.getlist(), dummystr.max_size(), changelist.getlist().begin(), dummy); } /** Constructor, populate parameters starting from a given position in a mode change list. -- cgit v1.3.1-10-gc9f91