diff options
author | Kefu Chai <tchaikov@gmail.com> | 2018-05-06 05:34:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-06 05:34:52 +0200 |
commit | c17e3d834615f3dae0aaf2bfbece5965d7a94887 (patch) | |
tree | b63894ec3d80086ecc37f2671a6c1bb099c382fa /src/mgr/DaemonServer.cc | |
parent | Merge pull request #19041 from dragonylffly/wip-list-objects-in-a-pg (diff) | |
parent | misc: mark constructors as explicit (diff) | |
download | ceph-c17e3d834615f3dae0aaf2bfbece5965d7a94887.tar.xz ceph-c17e3d834615f3dae0aaf2bfbece5965d7a94887.zip |
Merge pull request #21637 from ceph/wip-da-SCA-20180423
misc: mark constructors as explicit
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Diffstat (limited to 'src/mgr/DaemonServer.cc')
-rw-r--r-- | src/mgr/DaemonServer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mgr/DaemonServer.cc b/src/mgr/DaemonServer.cc index 421c87d8a6f..bacb485a210 100644 --- a/src/mgr/DaemonServer.cc +++ b/src/mgr/DaemonServer.cc @@ -666,7 +666,7 @@ bool DaemonServer::handle_command(MCommand *m) bufferlist odata; cmdmap_t cmdmap; - CommandContext(MCommand *m_) + explicit CommandContext(MCommand *m_) : m(m_) { } @@ -710,7 +710,7 @@ bool DaemonServer::handle_command(MCommand *m) bufferlist from_mon; string outs; - ReplyOnFinish(const std::shared_ptr<CommandContext> &cmdctx_) + explicit ReplyOnFinish(const std::shared_ptr<CommandContext> &cmdctx_) : cmdctx(cmdctx_) {} void finish(int r) override { |