From 392b783c9ef0b1b0c4e66c8505c02fef84052ccb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 26 Apr 2019 14:44:27 +0200 Subject: [PATCH] fs/io/TextFile: add `noexcept` --- src/fs/io/TextFile.cxx | 2 +- src/fs/io/TextFile.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fs/io/TextFile.cxx b/src/fs/io/TextFile.cxx index 5bdb2b833..40598f1be 100644 --- a/src/fs/io/TextFile.cxx +++ b/src/fs/io/TextFile.cxx @@ -40,7 +40,7 @@ TextFile::TextFile(Path path_fs) { } -TextFile::~TextFile() = default; +TextFile::~TextFile() noexcept = default; char * TextFile::ReadLine() diff --git a/src/fs/io/TextFile.hxx b/src/fs/io/TextFile.hxx index b8997a8a7..ded555674 100644 --- a/src/fs/io/TextFile.hxx +++ b/src/fs/io/TextFile.hxx @@ -44,7 +44,7 @@ public: TextFile(const TextFile &other) = delete; - ~TextFile(); + ~TextFile() noexcept; /** * Reads a line from the input file, and strips trailing