filesystem/Path: use std::string

This commit is contained in:
Max Kellermann
2013-10-01 18:35:37 +02:00
parent b21ed2fa36
commit 43675717b8
4 changed files with 45 additions and 81 deletions

View File

@@ -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);