aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/winapi/file.hpp
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-10-16 23:45:36 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-10-16 23:45:36 +0300
commit73c5cc279f6252afcefd30b40d67b7bbb5b540de (patch)
tree4c03402c126ab54955e6bffcc3462105e2661db6 /include/winapi/file.hpp
parentCommandLine: saner API (diff)
downloadwinapi-common-73c5cc279f6252afcefd30b40d67b7bbb5b540de.tar.gz
winapi-common-73c5cc279f6252afcefd30b40d67b7bbb5b540de.zip
File: refactoring
Diffstat (limited to 'include/winapi/file.hpp')
-rw-r--r--include/winapi/file.hpp8
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;