| 46 | KittyIOFile &operator=(const KittyIOFile &) = delete; |
| 47 | |
| 48 | /** |
| 49 | * @brief Move constructor. Transfers ownership of the file descriptor. |
| 50 | */ |
| 51 | KittyIOFile(KittyIOFile &&other) noexcept |
| 52 | : _fd(other._fd), _filePath(std::move(other._filePath)), _flags(other._flags), _mode(other._mode), |
| 53 | _error(other._error) |
| 54 | { |
| 55 | other._fd = -1; |
| 56 | other._error = 0; |
| 57 | } |
nothing calls this directly
no outgoing calls
no test coverage detected