Commit c2b8b818 authored by Max Kellermann's avatar Max Kellermann

util/DivideString: add "noexcept"

parent 4284b0e2
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include <string.h> #include <string.h>
DivideString::DivideString(const char *s, char separator, bool strip) DivideString::DivideString(const char *s, char separator, bool strip) noexcept
:first(nullptr) :first(nullptr)
{ {
const char *x = strchr(s, separator); const char *x = strchr(s, separator);
......
...@@ -37,7 +37,7 @@ public: ...@@ -37,7 +37,7 @@ public:
* @param strip strip the first part and left-strip the second * @param strip strip the first part and left-strip the second
* part? * part?
*/ */
DivideString(const char *s, char separator, bool strip=false); DivideString(const char *s, char separator, bool strip=false) noexcept;
~DivideString() { ~DivideString() {
delete[] first; delete[] first;
......
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