*: add lost of "noexcept" specifications

This commit is contained in:
Max Kellermann
2017-06-03 21:33:44 +02:00
parent 62b03cfddf
commit a057b4f6d8
65 changed files with 246 additions and 241 deletions

View File

@@ -44,16 +44,16 @@ struct LightDirectory {
constexpr LightDirectory(const char *_uri, time_t _mtime)
:uri(_uri), mtime(_mtime) {}
static constexpr LightDirectory Root() {
static constexpr LightDirectory Root() noexcept {
return LightDirectory("", 0);
}
bool IsRoot() const {
bool IsRoot() const noexcept {
return *uri == 0;
}
gcc_pure
const char *GetPath() const {
const char *GetPath() const noexcept {
return uri;
}
};