db/Interface: migrate Update() from class Error to C++ exceptions

This commit is contained in:
Max Kellermann
2016-10-29 10:59:18 +02:00
parent df142d4f61
commit a2e3dc0592
3 changed files with 10 additions and 16 deletions

View File

@@ -124,8 +124,7 @@ public:
DatabaseStats GetStats(const DatabaseSelection &selection) const override;
virtual unsigned Update(const char *uri_utf8, bool discard,
Error &error) override;
unsigned Update(const char *uri_utf8, bool discard) override;
virtual time_t GetUpdateStamp() const override {
return update_stamp;
@@ -820,8 +819,7 @@ ProxyDatabase::GetStats(const DatabaseSelection &selection) const
}
unsigned
ProxyDatabase::Update(const char *uri_utf8, bool discard,
gcc_unused Error &error)
ProxyDatabase::Update(const char *uri_utf8, bool discard)
{
EnsureConnected();