aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongFilter.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-29 19:39:17 +0100
committerMax Kellermann <max@duempel.org>2013-10-29 19:39:17 +0100
commita6aa0e4cbf3068ed5a61b7bcef705800caa9fc41 (patch)
treea26a9f6c2be059b596f6f34bd155fe5af623f206 /src/SongFilter.hxx
parent163848ab3b4a1680ba30e167ea19e977c08556f5 (diff)
downloadmpd-a6aa0e4cbf3068ed5a61b7bcef705800caa9fc41.tar.gz
mpd-a6aa0e4cbf3068ed5a61b7bcef705800caa9fc41.tar.xz
mpd-a6aa0e4cbf3068ed5a61b7bcef705800caa9fc41.zip
SongFilter: use std::string
Diffstat (limited to 'src/SongFilter.hxx')
-rw-r--r--src/SongFilter.hxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/SongFilter.hxx b/src/SongFilter.hxx
index 380ab097e..495b8f888 100644
--- a/src/SongFilter.hxx
+++ b/src/SongFilter.hxx
@@ -23,6 +23,7 @@
#include "Compiler.h"
#include <list>
+#include <string>
#include <stdint.h>
@@ -39,21 +40,14 @@ class SongFilter {
bool fold_case;
- char *value;
+ std::string value;
public:
gcc_nonnull(3)
Item(unsigned tag, const char *value, bool fold_case=false);
Item(const Item &other) = delete;
-
- Item(Item &&other)
- :tag(other.tag), fold_case(other.fold_case),
- value(other.value) {
- other.value = nullptr;
- }
-
- ~Item();
+ Item(Item &&) = default;
Item &operator=(const Item &other) = delete;