From 386688b87ac87200ed6c68b0b5273ad7151e8a0a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 19 Jan 2018 23:35:36 +0100 Subject: [PATCH] SongFilter: use std::string instead of AllocatedString --- src/SongFilter.cxx | 2 +- src/SongFilter.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/SongFilter.cxx b/src/SongFilter.cxx index 4c3e746b1..a42f15ff4 100644 --- a/src/SongFilter.cxx +++ b/src/SongFilter.cxx @@ -59,7 +59,7 @@ locate_parse_type(const char *str) noexcept SongFilter::Item::Item(unsigned _tag, const char *_value, bool _fold_case) :tag(_tag), - value(AllocatedString<>::Duplicate(_value)), + value(_value), fold_case(_fold_case ? IcuCompare(value.c_str()) : IcuCompare()) { } diff --git a/src/SongFilter.hxx b/src/SongFilter.hxx index ec8317879..e7f4da9ab 100644 --- a/src/SongFilter.hxx +++ b/src/SongFilter.hxx @@ -21,9 +21,9 @@ #define MPD_SONG_FILTER_HXX #include "lib/icu/Compare.hxx" -#include "util/AllocatedString.hxx" #include "Compiler.h" +#include #include #include @@ -49,7 +49,7 @@ public: class Item { uint8_t tag; - AllocatedString<> value; + std::string value; /** * This value is only set if case folding is enabled.