未验证 提交 0f0ce4e5 编写于 作者: Y Yancey 提交者: GitHub

Fix cpplint (#7914)

上级 187da7f8
...@@ -101,8 +101,8 @@ bool RPCClient::Wait() { ...@@ -101,8 +101,8 @@ bool RPCClient::Wait() {
if (req_count_ <= 0) { if (req_count_ <= 0) {
return true; return true;
} }
const size_t kReqCnt = req_count_;
bool a[req_count_]; bool a[kReqCnt];
std::vector<std::future<void>> waits(req_count_); std::vector<std::future<void>> waits(req_count_);
for (int i = 0; i < req_count_; i++) { for (int i = 0; i < req_count_; i++) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册