all: misc and noexcept updates

This commit is contained in:
Markus F.X.J. Oberhumer
2023-07-09 17:36:24 +02:00
parent 300fa29446
commit 7ec0faca1e
41 changed files with 589 additions and 69 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ bool FileBase::do_sopen() {
return true;
}
bool FileBase::close() {
bool FileBase::close() noexcept {
bool ok = true;
if (isOpen() && _fd != STDIN_FILENO && _fd != STDOUT_FILENO && _fd != STDERR_FILENO)
if (::close(_fd) == -1)