diff options
Diffstat (limited to '')
-rw-r--r-- | src/util/DivideString.cxx (renamed from src/util/SplitString.cxx) | 4 | ||||
-rw-r--r-- | src/util/DivideString.hxx (renamed from src/util/SplitString.hxx) | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/util/SplitString.cxx b/src/util/DivideString.cxx index 75e799279..d30dfaa16 100644 --- a/src/util/SplitString.cxx +++ b/src/util/DivideString.cxx @@ -17,11 +17,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#include "SplitString.hxx" +#include "DivideString.hxx" #include <string.h> -SplitString::SplitString(const char *s, char separator) +DivideString::DivideString(const char *s, char separator) :first(nullptr) { const char *x = strchr(s, separator); diff --git a/src/util/SplitString.hxx b/src/util/DivideString.hxx index 96ffb21ec..d8d911691 100644 --- a/src/util/SplitString.hxx +++ b/src/util/DivideString.hxx @@ -17,8 +17,8 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#ifndef MPD_SPLIT_STRING_HXX -#define MPD_SPLIT_STRING_HXX +#ifndef MPD_DIVIDE_STRING_HXX +#define MPD_DIVIDE_STRING_HXX #include "Compiler.h" @@ -28,14 +28,14 @@ * Split a given constant string at a separator character. Duplicates * the first part to be able to null-terminate it. */ -class SplitString { +class DivideString { char *first; const char *second; public: - SplitString(const char *s, char separator); + DivideString(const char *s, char separator); - ~SplitString() { + ~DivideString() { delete[] first; } |