diff options
author | Max Kellermann <max@musicpd.org> | 2017-05-08 14:44:49 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2017-05-08 14:44:49 +0200 |
commit | 71f0ed8b7499011b53f90998ebfbd3250fd80948 (patch) | |
tree | e9c2f66fbef231858f46d878864199d46e6ce21c /src/storage/plugins/CurlStorage.cxx | |
parent | ac2e4e593d407e41db49fdb9ae2da6bc1557f618 (diff) |
*: add "noexcept" to many, many function prototypes
This eliminates some overhead, because the compiler doesn't need to
consider these functions throwing.
Diffstat (limited to 'src/storage/plugins/CurlStorage.cxx')
-rw-r--r-- | src/storage/plugins/CurlStorage.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/storage/plugins/CurlStorage.cxx b/src/storage/plugins/CurlStorage.cxx index cc65badfd..8dd736dad 100644 --- a/src/storage/plugins/CurlStorage.cxx +++ b/src/storage/plugins/CurlStorage.cxx @@ -64,13 +64,13 @@ public: StorageDirectoryReader *OpenDirectory(const char *uri_utf8) override; - std::string MapUTF8(const char *uri_utf8) const override; + std::string MapUTF8(const char *uri_utf8) const noexcept override; - const char *MapToRelativeUTF8(const char *uri_utf8) const override; + const char *MapToRelativeUTF8(const char *uri_utf8) const noexcept override; }; std::string -CurlStorage::MapUTF8(const char *uri_utf8) const +CurlStorage::MapUTF8(const char *uri_utf8) const noexcept { assert(uri_utf8 != nullptr); @@ -83,7 +83,7 @@ CurlStorage::MapUTF8(const char *uri_utf8) const } const char * -CurlStorage::MapToRelativeUTF8(const char *uri_utf8) const +CurlStorage::MapToRelativeUTF8(const char *uri_utf8) const noexcept { // TODO: escape/unescape? @@ -475,7 +475,7 @@ CurlStorage::GetInfo(const char *uri_utf8, gcc_unused bool follow) gcc_pure static const char * -UriPathOrSlash(const char *uri) +UriPathOrSlash(const char *uri) noexcept { const char *path = uri_get_path(uri); if (path == nullptr) |