summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/cursor_response.cpp
diff options
context:
space:
mode:
authorJason Rassi <rassi@10gen.com>2015-10-15 11:08:05 -0400
committerJason Rassi <rassi@10gen.com>2015-10-15 12:49:36 -0400
commitd6dc59681a95aeba31ff4dd2003f99b578eeae00 (patch)
treef7ee545528046401ae6185722bcd567074f6e589 /src/mongo/db/query/cursor_response.cpp
parent828b6529920386c96d55eefe772b1129f0dbb4d0 (diff)
downloadmongo-d6dc59681a95aeba31ff4dd2003f99b578eeae00.tar.gz
SERVER-20880 Fix bug in CursorResponse move ctor, assignment operator
Diffstat (limited to 'src/mongo/db/query/cursor_response.cpp')
-rw-r--r--src/mongo/db/query/cursor_response.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mongo/db/query/cursor_response.cpp b/src/mongo/db/query/cursor_response.cpp
index 08608a299b7..3c86439f622 100644
--- a/src/mongo/db/query/cursor_response.cpp
+++ b/src/mongo/db/query/cursor_response.cpp
@@ -80,16 +80,16 @@ CursorResponse::CursorResponse(NamespaceString nss,
#if defined(_MSC_VER) && _MSC_VER < 1900
CursorResponse::CursorResponse(CursorResponse&& other)
- : _nss(other._nss),
- _cursorId(other._cursorId),
- _batch(other._batch),
- _numReturnedSoFar(other._numReturnedSoFar) {}
+ : _nss(std::move(other._nss)),
+ _cursorId(std::move(other._cursorId)),
+ _batch(std::move(other._batch)),
+ _numReturnedSoFar(std::move(other._numReturnedSoFar)) {}
CursorResponse& CursorResponse::operator=(CursorResponse&& other) {
- _nss = other._nss;
- _cursorId = other._cursorId;
- _batch = other._batch;
- _numReturnedSoFar = other._numReturnedSoFar;
+ _nss = std::move(other._nss);
+ _cursorId = std::move(other._cursorId);
+ _batch = std::move(other._batch);
+ _numReturnedSoFar = std::move(other._numReturnedSoFar);
return *this;
}
#endif