summaryrefslogtreecommitdiff
path: root/src/mongo/s/write_ops/batched_update_request.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-06-10 17:43:13 -0400
committerAndrew Morrow <acm@mongodb.com>2015-06-10 22:37:44 -0400
commita9b6612f5322f916298c19a6728817a1034c6aab (patch)
tree0da5b1ce36e6a8e2d85dbdeb49d505ac99bf6e1d /src/mongo/s/write_ops/batched_update_request.cpp
parent0ec1e625760eb9c1a20a3dba78200e8f9ff28d9e (diff)
downloadmongo-a9b6612f5322f916298c19a6728817a1034c6aab.tar.gz
SERVER-17309 Replace std::auto_ptr<T> with std::unique_ptr<T>
Diffstat (limited to 'src/mongo/s/write_ops/batched_update_request.cpp')
-rw-r--r--src/mongo/s/write_ops/batched_update_request.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/s/write_ops/batched_update_request.cpp b/src/mongo/s/write_ops/batched_update_request.cpp
index 98b5c1ccf27..f2dda0be1de 100644
--- a/src/mongo/s/write_ops/batched_update_request.cpp
+++ b/src/mongo/s/write_ops/batched_update_request.cpp
@@ -34,7 +34,7 @@
namespace mongo {
- using std::auto_ptr;
+ using std::unique_ptr;
using std::string;
using mongoutils::str::stream;
@@ -181,7 +181,7 @@ namespace mongo {
for(std::vector<BatchedUpdateDocument*>::const_iterator it = _updates.begin();
it != _updates.end();
++it) {
- auto_ptr<BatchedUpdateDocument> tempBatchUpdateDocument(new BatchedUpdateDocument);
+ unique_ptr<BatchedUpdateDocument> tempBatchUpdateDocument(new BatchedUpdateDocument);
(*it)->cloneTo(tempBatchUpdateDocument.get());
other->addToUpdates(tempBatchUpdateDocument.release());
}
@@ -232,7 +232,7 @@ namespace mongo {
for (std::vector<BatchedUpdateDocument*>::const_iterator it = updates.begin();
it != updates.end();
++it) {
- auto_ptr<BatchedUpdateDocument> tempBatchUpdateDocument(new BatchedUpdateDocument);
+ unique_ptr<BatchedUpdateDocument> tempBatchUpdateDocument(new BatchedUpdateDocument);
(*it)->cloneTo(tempBatchUpdateDocument.get());
addToUpdates(tempBatchUpdateDocument.release());
}