Commit 66284212 authored by Max Kellermann's avatar Max Kellermann

util/SplitString: add "noexcept"

parent 66e3801b
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <string.h> #include <string.h>
std::forward_list<std::string> std::forward_list<std::string>
SplitString(const char *s, char separator, bool strip) SplitString(const char *s, char separator, bool strip) noexcept
{ {
if (strip) if (strip)
s = StripLeft(s); s = StripLeft(s);
......
...@@ -44,6 +44,6 @@ ...@@ -44,6 +44,6 @@
* (and not a list with an empty string). * (and not a list with an empty string).
*/ */
std::forward_list<std::string> std::forward_list<std::string>
SplitString(const char *s, char separator, bool strip=true); SplitString(const char *s, char separator, bool strip=true) noexcept;
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment