diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-16 23:45:36 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-10-16 23:45:36 +0300 |
commit | 73c5cc279f6252afcefd30b40d67b7bbb5b540de (patch) | |
tree | 4c03402c126ab54955e6bffcc3462105e2661db6 /include/winapi/file.hpp | |
parent | CommandLine: saner API (diff) | |
download | winapi-common-73c5cc279f6252afcefd30b40d67b7bbb5b540de.tar.gz winapi-common-73c5cc279f6252afcefd30b40d67b7bbb5b540de.zip |
File: refactoring
Diffstat (limited to 'include/winapi/file.hpp')
-rw-r--r-- | include/winapi/file.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/winapi/file.hpp b/include/winapi/file.hpp index 221047b..fd34783 100644 --- a/include/winapi/file.hpp +++ b/include/winapi/file.hpp @@ -17,10 +17,10 @@ class File : private Handle { public: explicit File(Handle&& handle) : Handle{std::move(handle)} {} - static Handle open_for_reading(const std::string&); - static Handle open_for_reading(const CanonicalPath&); - static Handle open_for_writing(const std::string&); - static Handle open_for_writing(const CanonicalPath&); + static Handle open_r(const std::string&); + static Handle open_r(const CanonicalPath&); + static Handle open_w(const std::string&); + static Handle open_w(const CanonicalPath&); using Handle::close; |