File::get -> File::descriptor.

This commit is contained in:
Victor Zverovich
2014-05-03 15:07:28 -07:00
parent c6d83b1a3b
commit ee793b35cf
3 changed files with 30 additions and 32 deletions
+2 -3
View File
@@ -185,11 +185,10 @@ class File {
#endif
// Destroys the object closing the file it represents if any.
~File();
~File() FMT_NOEXCEPT(true);
// Returns the file descriptor.
// TODO: rename to descriptor
int get() const FMT_NOEXCEPT(true) { return fd_; }
int descriptor() const FMT_NOEXCEPT(true) { return fd_; }
// Closes the file if its descriptor is not -1.
void close();