From 662842126d12eb0ea0e2711991f01b2b437432ef Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 16 May 2017 10:23:50 +0200 Subject: [PATCH] util/SplitString: add "noexcept" --- src/util/SplitString.cxx | 2 +- src/util/SplitString.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/SplitString.cxx b/src/util/SplitString.cxx index 3404d026f..91be8e801 100644 --- a/src/util/SplitString.cxx +++ b/src/util/SplitString.cxx @@ -34,7 +34,7 @@ #include std::forward_list -SplitString(const char *s, char separator, bool strip) +SplitString(const char *s, char separator, bool strip) noexcept { if (strip) s = StripLeft(s); diff --git a/src/util/SplitString.hxx b/src/util/SplitString.hxx index 4152215d1..c22175f2f 100644 --- a/src/util/SplitString.hxx +++ b/src/util/SplitString.hxx @@ -44,6 +44,6 @@ * (and not a list with an empty string). */ std::forward_list -SplitString(const char *s, char separator, bool strip=true); +SplitString(const char *s, char separator, bool strip=true) noexcept; #endif