aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabaseSelection.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/DatabaseSelection.hxx')
-rw-r--r--src/DatabaseSelection.hxx8
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