util/DivideString: add "noexcept"
This commit is contained in:
parent
4284b0e2b8
commit
c2b8b818c7
@ -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:
|
|||||||
* @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;
|
||||||
|
Loading…
Reference in New Issue
Block a user