Skip to content

Commit

Permalink
s/NOEXCEPT/ROCKSDB_NOEXCEPT
Browse files Browse the repository at this point in the history
  • Loading branch information
yuslepukhin committed Aug 25, 2015
1 parent 6924d75 commit fbe2c05
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion port/port_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// in fact, we could use that one
#define ROCKSDB_PRIszt "zu"

#define NOEXCEPT noexcept
#define ROCKSDB_NOEXCEPT noexcept

#undef PLATFORM_IS_LITTLE_ENDIAN
#if defined(OS_MACOSX)
Expand Down
2 changes: 1 addition & 1 deletion port/win/port_win.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ typedef SSIZE_T ssize_t;
#define ROCKSDB_PRIszt "Iu"
#endif

#define NOEXCEPT
#define ROCKSDB_NOEXCEPT

#define __attribute__(A)

Expand Down
12 changes: 6 additions & 6 deletions utilities/backupable/backupable_db.cc
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,9 @@ class BackupEngineImpl : public BackupEngine {
CopyWorkItem(const CopyWorkItem&) = delete;
CopyWorkItem& operator=(const CopyWorkItem&) = delete;

CopyWorkItem(CopyWorkItem&& o) NOEXCEPT { *this = std::move(o); }
CopyWorkItem(CopyWorkItem&& o) ROCKSDB_NOEXCEPT { *this = std::move(o); }

CopyWorkItem& operator=(CopyWorkItem&& o) NOEXCEPT {
CopyWorkItem& operator=(CopyWorkItem&& o) ROCKSDB_NOEXCEPT {
src_path = std::move(o.src_path);
dst_path = std::move(o.dst_path);
src_env = o.src_env;
Expand Down Expand Up @@ -384,11 +384,11 @@ class BackupEngineImpl : public BackupEngine {
std::string dst_relative;
BackupAfterCopyWorkItem() {}

BackupAfterCopyWorkItem(BackupAfterCopyWorkItem&& o) NOEXCEPT {
BackupAfterCopyWorkItem(BackupAfterCopyWorkItem&& o) ROCKSDB_NOEXCEPT {
*this = std::move(o);
}

BackupAfterCopyWorkItem& operator=(BackupAfterCopyWorkItem&& o) NOEXCEPT {
BackupAfterCopyWorkItem& operator=(BackupAfterCopyWorkItem&& o) ROCKSDB_NOEXCEPT {
result = std::move(o.result);
shared = o.shared;
needed_to_copy = o.needed_to_copy;
Expand Down Expand Up @@ -419,11 +419,11 @@ class BackupEngineImpl : public BackupEngine {
RestoreAfterCopyWorkItem(std::future<CopyResult>&& _result,
uint32_t _checksum_value)
: result(std::move(_result)), checksum_value(_checksum_value) {}
RestoreAfterCopyWorkItem(RestoreAfterCopyWorkItem&& o) NOEXCEPT {
RestoreAfterCopyWorkItem(RestoreAfterCopyWorkItem&& o) ROCKSDB_NOEXCEPT {
*this = std::move(o);
}

RestoreAfterCopyWorkItem& operator=(RestoreAfterCopyWorkItem&& o) NOEXCEPT {
RestoreAfterCopyWorkItem& operator=(RestoreAfterCopyWorkItem&& o) ROCKSDB_NOEXCEPT {
result = std::move(o.result);
checksum_value = o.checksum_value;
return *this;
Expand Down

0 comments on commit fbe2c05

Please sign in to comment.