From a6aa0e4cbf3068ed5a61b7bcef705800caa9fc41 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Oct 2013 19:39:17 +0100 Subject: SongFilter: use std::string --- src/SongFilter.hxx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'src/SongFilter.hxx') 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 +#include #include @@ -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; -- cgit v1.2.3