aboutsummaryrefslogtreecommitdiff
path: root/include/clientprotocolmsg.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-10-14 12:20:50 +0100
committerGravatar Sadie Powell2022-10-14 12:20:50 +0100
commitcf628fb946a06b5a974534505c5ecfbbc153dd70 (patch)
tree7a320f28c734984941e0407e20084989d3be2c89 /include/clientprotocolmsg.h
parentMerge branch 'insp3' into master. (diff)
Fix a harmless todo in clientprotocolmsg.
Diffstat (limited to 'include/clientprotocolmsg.h')
-rw-r--r--include/clientprotocolmsg.h4
1 files changed, 2 insertions, 2 deletions
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.