diff options
Diffstat (limited to 'src/libcamera/file_descriptor.cpp')
-rw-r--r-- | src/libcamera/file_descriptor.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/libcamera/file_descriptor.cpp b/src/libcamera/file_descriptor.cpp index 638b3bbe..9f9ebc81 100644 --- a/src/libcamera/file_descriptor.cpp +++ b/src/libcamera/file_descriptor.cpp @@ -47,11 +47,11 @@ LOG_DEFINE_CATEGORY(FileDescriptor) * by fd() will be identical to the value passed to the constructor. * * The copy constructor and assignment operator create copies that share the - * Descriptor, while the move versions of those methods additionally make the + * Descriptor, while the move versions of those functions additionally make the * other FileDescriptor invalid. When the last FileDescriptor that references a * Descriptor is destroyed, the file descriptor is closed. * - * The numerical file descriptor is available through the fd() method. All + * The numerical file descriptor is available through the fd() function. All * FileDescriptor instances created as copies of a FileDescriptor will report * the same fd() value. Callers can perform operations on the fd(), but shall * never close it manually. @@ -68,7 +68,7 @@ LOG_DEFINE_CATEGORY(FileDescriptor) * FileDescriptor instances that reference it are destroyed. * * If the \a fd is negative, the FileDescriptor is constructed as invalid and - * the fd() method will return -1. + * the fd() function will return -1. */ FileDescriptor::FileDescriptor(const int &fd) { @@ -92,7 +92,7 @@ FileDescriptor::FileDescriptor(const int &fd) * destroyed. * * If the \a fd is negative, the FileDescriptor is constructed as invalid and - * the fd() method will return -1. + * the fd() function will return -1. */ FileDescriptor::FileDescriptor(int &&fd) { @@ -129,7 +129,7 @@ FileDescriptor::FileDescriptor(const FileDescriptor &other) * * Moving a FileDescriptor moves the reference to the wrapped descriptor owned * by \a other to the new FileDescriptor. The \a other FileDescriptor is - * invalidated and its fd() method will return -1. The wrapped file descriptor + * invalidated and its fd() function will return -1. The wrapped file descriptor * will be closed automatically when all FileDescriptor instances that * reference it are destroyed. */ @@ -178,7 +178,7 @@ FileDescriptor &FileDescriptor::operator=(const FileDescriptor &other) * Moving a FileDescriptor moves the reference to the wrapped descriptor owned * by \a other to the new FileDescriptor. If \a other is invalid, *this will * also be invalid. The \a other FileDescriptor is invalidated and its fd() - * method will return -1. The wrapped file descriptor will be closed + * function will return -1. The wrapped file descriptor will be closed * automatically when all FileDescriptor instances that reference it are * destroyed. * @@ -209,7 +209,7 @@ FileDescriptor &FileDescriptor::operator=(FileDescriptor &&other) * * Duplicating a FileDescriptor creates a duplicate of the wrapped file * descriptor and returns a new FileDescriptor instance that wraps the - * duplicate. The fd() method of the original and duplicate instances will + * duplicate. The fd() function of the original and duplicate instances will * return different values. The duplicate instance will not be affected by * destruction of the original instance or its copies. * |