瀏覽代碼

Merge pull request #901 from mapleFU:opt-using-move

PiperOrigin-RevId: 420662938
master
Victor Costan 2 年之前
父節點
當前提交
8ccb79b57e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      util/env_posix.cc

+ 1
- 1
util/env_posix.cc 查看文件

@ -136,7 +136,7 @@ class Limiter {
class PosixSequentialFile final : public SequentialFile {
public:
PosixSequentialFile(std::string filename, int fd)
: fd_(fd), filename_(filename) {}
: fd_(fd), filename_(std::move(filename)) {}
~PosixSequentialFile() override { close(fd_); }
Status Read(size_t n, Slice* result, char* scratch) override {

Loading…
取消
儲存