diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2017-12-06 14:40:59 -0500 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2017-12-14 17:50:41 -0500 |
commit | 950fa6e6fd8f46248796dea3bc6c2392757b163d (patch) | |
tree | 2556f9322ee634477fc54b6876653b8ea702b8fa /src/mongo/db/repl/reporter_test.cpp | |
parent | d2eedbeeedb61753c17b6a87912e4b14e7611b95 (diff) | |
download | mongo-950fa6e6fd8f46248796dea3bc6c2392757b163d.tar.gz |
SERVER-32070 migrate some easy stdx::bind to lambdas (pt3)
Diffstat (limited to 'src/mongo/db/repl/reporter_test.cpp')
-rw-r--r-- | src/mongo/db/repl/reporter_test.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/repl/reporter_test.cpp b/src/mongo/db/repl/reporter_test.cpp index aec94c02387..a827e1dec7c 100644 --- a/src/mongo/db/repl/reporter_test.cpp +++ b/src/mongo/db/repl/reporter_test.cpp @@ -146,8 +146,9 @@ void ReporterTest::setUp() { posUpdater = stdx::make_unique<MockProgressManager>(); posUpdater->updateMap(0, OpTime({3, 0}, 1), OpTime({3, 0}, 1)); - prepareReplSetUpdatePositionCommandFn = - stdx::bind(&MockProgressManager::prepareReplSetUpdatePositionCommand, posUpdater.get()); + prepareReplSetUpdatePositionCommandFn = [updater = posUpdater.get()] { + return updater->prepareReplSetUpdatePositionCommand(); + }; reporter = stdx::make_unique<Reporter>(_executorProxy.get(), |