mirror of
https://github.com/google/leveldb.git
synced 2025-01-27 06:30:07 +08:00
remove noexcept keywords, since exception is disabled in CMakeLists.txt file
This commit is contained in:
parent
23e35d792b
commit
9a3ca43686
@ -24,14 +24,14 @@ namespace leveldb {
|
||||
class LEVELDB_EXPORT Status {
|
||||
public:
|
||||
// Create a success status.
|
||||
Status() noexcept : state_(nullptr) {}
|
||||
Status() : state_(nullptr) {}
|
||||
~Status() { delete[] state_; }
|
||||
|
||||
Status(const Status& rhs);
|
||||
Status& operator=(const Status& rhs);
|
||||
|
||||
Status(Status&& rhs) noexcept : state_(rhs.state_) { rhs.state_ = nullptr; }
|
||||
Status& operator=(Status&& rhs) noexcept;
|
||||
Status(Status&& rhs) : state_(rhs.state_) { rhs.state_ = nullptr; }
|
||||
Status& operator=(Status&& rhs);
|
||||
|
||||
// Return a success status.
|
||||
static Status OK() { return Status(); }
|
||||
@ -112,7 +112,7 @@ inline Status& Status::operator=(const Status& rhs) {
|
||||
}
|
||||
return *this;
|
||||
}
|
||||
inline Status& Status::operator=(Status&& rhs) noexcept {
|
||||
inline Status& Status::operator=(Status&& rhs) {
|
||||
std::swap(state_, rhs.state_);
|
||||
return *this;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user