summaryrefslogtreecommitdiff
path: root/src/ls.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-05-08 14:44:49 +0200
committerMax Kellermann <max@musicpd.org>2017-05-08 14:44:49 +0200
commit71f0ed8b7499011b53f90998ebfbd3250fd80948 (patch)
treee9c2f66fbef231858f46d878864199d46e6ce21c /src/ls.cxx
parentac2e4e593d407e41db49fdb9ae2da6bc1557f618 (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/ls.cxx')
-rw-r--r--src/ls.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ls.cxx b/src/ls.cxx
index 2ba735b4d..72754dd7f 100644
--- a/src/ls.cxx
+++ b/src/ls.cxx
@@ -89,7 +89,8 @@ print_supported_uri_schemes(Response &r)
}
}
-bool uri_supported_scheme(const char *uri)
+bool
+uri_supported_scheme(const char *uri) noexcept
{
const char *const*urlPrefixes = remoteUrlPrefixes;