aboutsummaryrefslogtreecommitdiffstats
path: root/src/SongFilter.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/SongFilter.hxx')
-rw-r--r--src/SongFilter.hxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/SongFilter.hxx b/src/SongFilter.hxx
index f51bd85c6..e15f0338f 100644
--- a/src/SongFilter.hxx
+++ b/src/SongFilter.hxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2014 The Music Player Daemon Project
+ * Copyright (C) 2003-2015 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -20,10 +20,10 @@
#ifndef MPD_SONG_FILTER_HXX
#define MPD_SONG_FILTER_HXX
+#include "util/AllocatedString.hxx"
#include "Compiler.h"
#include <list>
-#include <string>
#include <stdint.h>
#include <time.h>
@@ -51,7 +51,7 @@ public:
bool fold_case;
- std::string value;
+ AllocatedString<> value;
/**
* For #LOCATE_TAG_MODIFIED_SINCE
@@ -76,8 +76,8 @@ public:
return fold_case;
}
- const std::string &GetValue() const {
- return value;
+ const char *GetValue() const {
+ return value.c_str();
}
gcc_pure gcc_nonnull(2)
@@ -149,11 +149,11 @@ public:
bool HasOtherThanBase() const;
/**
- * Returns the "base" specification (if there is one) or an
- * empty string.
+ * Returns the "base" specification (if there is one) or
+ * nullptr.
*/
gcc_pure
- std::string GetBase() const;
+ const char *GetBase() const;
};
/**