util/DivideString: add "noexcept"

This commit is contained in:
Max Kellermann 2017-05-16 10:22:36 +02:00
parent 4284b0e2b8
commit c2b8b818c7
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
#include <string.h>
DivideString::DivideString(const char *s, char separator, bool strip)
DivideString::DivideString(const char *s, char separator, bool strip) noexcept
:first(nullptr)
{
const char *x = strchr(s, separator);

View File

@ -37,7 +37,7 @@ public:
* @param strip strip the first part and left-strip the second
* part?
*/
DivideString(const char *s, char separator, bool strip=false);
DivideString(const char *s, char separator, bool strip=false) noexcept;
~DivideString() {
delete[] first;