util/StringView: add "noexcept"

This commit is contained in:
Max Kellermann
2017-05-16 10:27:14 +02:00
parent 662842126d
commit 86a0a42a8d
2 changed files with 21 additions and 21 deletions

View File

@@ -31,14 +31,14 @@
#include "CharUtil.hxx"
void
StringView::StripLeft()
StringView::StripLeft() noexcept
{
while (!IsEmpty() && IsWhitespaceOrNull(front()))
pop_front();
}
void
StringView::StripRight()
StringView::StripRight() noexcept
{
while (!IsEmpty() && IsWhitespaceOrNull(back()))
pop_back();