aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/file.cpp
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 /src/file.cpp
parentCommandLine: saner API (diff)
downloadwinapi-common-73c5cc279f6252afcefd30b40d67b7bbb5b540de.tar.gz
winapi-common-73c5cc279f6252afcefd30b40d67b7bbb5b540de.zip
File: refactoring
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/file.cpp b/src/file.cpp
index a299d70..c6a4ff4 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -71,19 +71,19 @@ Handle open_file(const std::wstring& path, const CreateFileParams& params) {
} // namespace
-Handle File::open_for_reading(const std::string& path) {
+Handle File::open_r(const std::string& path) {
return open_file(to_system_path(path), CreateFileParams::read());
}
-Handle File::open_for_reading(const CanonicalPath& path) {
+Handle File::open_r(const CanonicalPath& path) {
return open_file(to_system_path(path), CreateFileParams::read());
}
-Handle File::open_for_writing(const std::string& path) {
+Handle File::open_w(const std::string& path) {
return open_file(to_system_path(path), CreateFileParams::write());
}
-Handle File::open_for_writing(const CanonicalPath& path) {
+Handle File::open_w(const CanonicalPath& path) {
return open_file(to_system_path(path), CreateFileParams::write());
}