dbwrapper: Remove throw keywords in function signatures

Using throw() specifications in function signatures is not only
not required in C++, it is considered deprecated for
[various reasons](https://stackoverflow.com/questions/1055387/throw-keyword-in-functions-signature).
It is not implemented by any of the common C++ compilers. The usage is
also inconsistent with the rest of the source code.
This commit is contained in:
Wladimir J. van der Laan
2016-04-20 09:05:12 +02:00
parent 04a2937357
commit 74f7b1273c
2 changed files with 9 additions and 9 deletions

View File

@@ -15,7 +15,7 @@
#include <memenv.h>
#include <stdint.h>
void HandleError(const leveldb::Status& status) throw(dbwrapper_error)
void HandleError(const leveldb::Status& status)
{
if (status.ok())
return;
@@ -102,7 +102,7 @@ CDBWrapper::~CDBWrapper()
options.env = NULL;
}
bool CDBWrapper::WriteBatch(CDBBatch& batch, bool fSync) throw(dbwrapper_error)
bool CDBWrapper::WriteBatch(CDBBatch& batch, bool fSync)
{
leveldb::Status status = pdb->Write(fSync ? syncoptions : writeoptions, &batch.batch);
HandleError(status);