fs/io/FileOutputStream: use C++ exceptions in constructor

This commit is contained in:
Max Kellermann
2015-12-15 22:26:26 +01:00
parent d29be0f460
commit 24b2198668
9 changed files with 64 additions and 72 deletions

View File

@@ -379,9 +379,7 @@ SimpleDatabase::Save(Error &error)
LogDebug(simple_db_domain, "writing DB");
FileOutputStream fos(path, error);
if (!fos.IsDefined())
return false;
FileOutputStream fos(path);
OutputStream *os = &fos;