diff options
author | Max Kellermann <max@duempel.org> | 2013-10-29 20:33:20 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-29 20:36:52 +0100 |
commit | 2d5413fc3ba2dc77189bed3dfbbc65ad4243e477 (patch) | |
tree | 571e3b4cb870602c3da3d74b82fa5fdb8bb8cbf3 /src/DatabaseSelection.hxx | |
parent | a6aa0e4cbf3068ed5a61b7bcef705800caa9fc41 (diff) | |
download | mpd-2d5413fc3ba2dc77189bed3dfbbc65ad4243e477.tar.gz mpd-2d5413fc3ba2dc77189bed3dfbbc65ad4243e477.tar.xz mpd-2d5413fc3ba2dc77189bed3dfbbc65ad4243e477.zip |
DatabaseSelection: use std::string
Diffstat (limited to '')
-rw-r--r-- | src/DatabaseSelection.hxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/DatabaseSelection.hxx b/src/DatabaseSelection.hxx index 8ef5b6d9c..67a88b945 100644 --- a/src/DatabaseSelection.hxx +++ b/src/DatabaseSelection.hxx @@ -22,7 +22,7 @@ #include "Compiler.h" -#include <assert.h> +#include <string> class SongFilter; struct Song; @@ -30,10 +30,9 @@ struct Song; struct DatabaseSelection { /** * The base URI of the search (UTF-8). Must not begin or end - * with a slash. nullptr or an empty string searches the whole - * database. + * with a slash. An empty string searches the whole database. */ - const char *uri; + std::string uri; /** * Recursively search all sub directories? @@ -45,7 +44,6 @@ struct DatabaseSelection { DatabaseSelection(const char *_uri, bool _recursive, const SongFilter *_filter=nullptr) :uri(_uri), recursive(_recursive), filter(_filter) { - assert(uri != nullptr); } gcc_pure |