Skip to content

Commit

Permalink
Use static cast
Browse files Browse the repository at this point in the history
  • Loading branch information
bugdea1er committed Jan 28, 2024
1 parent 629ff20 commit 7a942e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ std::ofstream stream(const tmp::file& file, bool binary, bool append) noexcept {
mode |= std::ios::binary;
}

const fs::path& path = file;
return std::ofstream(path, mode);
return std::ofstream(static_cast<const fs::path&>(file), mode);
}
} // namespace

Expand Down

0 comments on commit 7a942e3

Please sign in to comment.