diff options
author | Eric Fiselier <eric@efcs.ca> | 2018-07-23 11:55:13 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2018-07-23 11:55:13 +0000 |
commit | 36bf18fc64b531fd994000cee56ff7c7d2181d13 (patch) | |
tree | 03f01439506bc82965b2bb53a0613b870e675690 /src | |
parent | 68265538036847cd4c50a9d45ad9abfc5fb409b4 (diff) | |
download | libcxx-36bf18fc64b531fd994000cee56ff7c7d2181d13.tar.gz |
Cleanup unnecessary conversions in filesystem.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@337685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src')
-rw-r--r-- | src/experimental/filesystem/operations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/experimental/filesystem/operations.cpp b/src/experimental/filesystem/operations.cpp index 33583f45f..dd805193b 100644 --- a/src/experimental/filesystem/operations.cpp +++ b/src/experimental/filesystem/operations.cpp @@ -727,10 +727,10 @@ bool __copy_file(const path& from, const path& to, copy_options options, const bool to_exists = exists(to_st); if (to_exists && !is_regular_file(to_st)) - return err.report(make_error_code(errc::not_supported)); + return err.report(errc::not_supported); if (to_exists && detail::stat_equivalent(from_stat, to_stat_path)) - return err.report(make_error_code(errc::file_exists)); + return err.report(errc::file_exists); if (to_exists && skip_existing) return false; |