diff options
author | Max Kellermann <max@duempel.org> | 2013-10-01 18:35:37 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-02 08:56:27 +0200 |
commit | 43675717b83b8502dcf7a2254195f771c50d8cec (patch) | |
tree | 4816eda1f2caa59ec3bb9a353704e9244375e883 /src/db | |
parent | b21ed2fa3673cf2fbdc4142c07d60c499e5f877e (diff) | |
download | mpd-43675717b83b8502dcf7a2254195f771c50d8cec.tar.gz mpd-43675717b83b8502dcf7a2254195f771c50d8cec.tar.xz mpd-43675717b83b8502dcf7a2254195f771c50d8cec.zip |
filesystem/Path: use std::string
Diffstat (limited to '')
-rw-r--r-- | src/db/SimpleDatabasePlugin.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/db/SimpleDatabasePlugin.cxx b/src/db/SimpleDatabasePlugin.cxx index c28f0e4cc..2e30086fc 100644 --- a/src/db/SimpleDatabasePlugin.cxx +++ b/src/db/SimpleDatabasePlugin.cxx @@ -71,7 +71,6 @@ bool SimpleDatabase::Check(Error &error) const { assert(!path.IsNull()); - assert(!path.empty()); /* Check if the file exists */ if (!CheckAccess(path, F_OK)) { @@ -137,7 +136,7 @@ SimpleDatabase::Check(Error &error) const bool SimpleDatabase::Load(Error &error) { - assert(!path.empty()); + assert(!path.IsNull()); assert(root != NULL); TextFile file(path); |