aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/SimpleDatabasePlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-01 18:35:37 +0200
committerMax Kellermann <max@duempel.org>2013-10-02 08:56:27 +0200
commit43675717b83b8502dcf7a2254195f771c50d8cec (patch)
tree4816eda1f2caa59ec3bb9a353704e9244375e883 /src/db/SimpleDatabasePlugin.cxx
parentb21ed2fa3673cf2fbdc4142c07d60c499e5f877e (diff)
downloadmpd-43675717b83b8502dcf7a2254195f771c50d8cec.tar.gz
mpd-43675717b83b8502dcf7a2254195f771c50d8cec.tar.xz
mpd-43675717b83b8502dcf7a2254195f771c50d8cec.zip
filesystem/Path: use std::string
Diffstat (limited to 'src/db/SimpleDatabasePlugin.cxx')
-rw-r--r--src/db/SimpleDatabasePlugin.cxx3
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);