SongFilter: use std::string

This commit is contained in:
Max Kellermann
2013-10-29 19:39:17 +01:00
parent 163848ab3b
commit a6aa0e4cbf
2 changed files with 26 additions and 21 deletions

View File

@@ -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;