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