*: 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

@@ -149,7 +149,7 @@ CompositeStorage::Directory::Make(const char *uri)
}
bool
CompositeStorage::Directory::Unmount()
CompositeStorage::Directory::Unmount() noexcept
{
if (storage == nullptr)
return false;
@@ -160,7 +160,7 @@ CompositeStorage::Directory::Unmount()
}
bool
CompositeStorage::Directory::Unmount(const char *uri)
CompositeStorage::Directory::Unmount(const char *uri) noexcept
{
if (StringIsEmpty(uri))
return Unmount();

View File

@@ -55,7 +55,7 @@ class CompositeStorage final : public Storage {
~Directory();
gcc_pure
bool IsEmpty() const {
bool IsEmpty() const noexcept {
return storage == nullptr && children.empty();
}
@@ -64,8 +64,8 @@ class CompositeStorage final : public Storage {
Directory &Make(const char *uri);
bool Unmount();
bool Unmount(const char *uri);
bool Unmount() noexcept;
bool Unmount(const char *uri) noexcept;
gcc_pure
bool MapToRelativeUTF8(std::string &buffer,

View File

@@ -511,7 +511,7 @@ private:
* to the base file name.
*/
gcc_pure
StringView HrefToEscapedName(const char *href) const {
StringView HrefToEscapedName(const char *href) const noexcept {
const char *path = uri_get_path(href);
if (path == nullptr)
return nullptr;