*: add lost of "noexcept" specifications
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user