Skip to content

Commit 6f3711d

Browse files
more auto returns
1 parent b2eeb5d commit 6f3711d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libs/openFrameworks/utils/ofFilesystem.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ class path {
8888
bool is_block_file() const { return std::filesystem::is_block_file(path_); }
8989
bool is_character_file() const { return std::filesystem::is_character_file(path_); }
9090
bool is_empty() const { return std::filesystem::is_empty(path_); }
91-
std::uintmax_t file_size() const { return std::filesystem::file_size(path_); }
92-
std::filesystem::file_time_type last_write_time() const { return std::filesystem::last_write_time(path_); }
91+
auto file_size() const { return std::filesystem::file_size(path_); }
92+
auto last_write_time() const { return std::filesystem::last_write_time(path_); }
9393
auto get_permissions() const { return std::filesystem::status(path_).permissions(); }
9494

9595
// MARK: path type
@@ -200,9 +200,9 @@ class path {
200200
path parent_path() const { return path(path_.parent_path()); }
201201
path filename() const { return path(path_.filename()); }
202202
path stem() const { return path(path_.stem()); }
203+
path extension() const { return path(path_.extension()); }
203204

204205
// MARK: file info
205-
auto extension() const { return path(path_.extension()); }
206206
bool has_extension() const { return path_.has_extension(); }
207207
bool has_filename() const { return path_.has_filename(); }
208208
bool has_root_path() const { return path_.has_root_path(); }

0 commit comments

Comments
 (0)