Skip to content

Commit

Permalink
fs/FileInfo: make constructor explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Oct 7, 2023
1 parent 51c0a03 commit f549c61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fs/FileInfo.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class FileInfo {
public:
constexpr FileInfo() noexcept = default;

FileInfo(Path path, bool follow_symlinks=true) {
explicit FileInfo(Path path, bool follow_symlinks=true) {
if (!GetFileInfo(path, *this, follow_symlinks)) {
#ifdef _WIN32
throw FmtLastError("Failed to access {}", path);
Expand Down

0 comments on commit f549c61

Please sign in to comment.