millennium-dev team mailing list archive
-
millennium-dev team
-
Mailing list archive
-
Message #00087
[Bug 1202670] Re: Redundant code line.
Don't all strings received by using std::getline end with a newline character?
If I'm right, then well, yes, we might remove the last character instead, but that involves using .erase anyway.
--
You received this bug notification because you are a member of
Millennium Developers, which is subscribed to libMillennium.
https://bugs.launchpad.net/bugs/1202670
Title:
Redundant code line.
Status in libMillennium:
New
Bug description:
The line
"message.erase(std::remove(message.begin(), message.end(), '\n'),
message.end()); // Removes newline characters"
in file main.cpp probably does nothing in all cases.
To manage notifications about this bug go to:
https://bugs.launchpad.net/libmillennium/+bug/1202670/+subscriptions
References