diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-02-06 13:40:41 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-02-06 13:40:41 +0000 |
commit | 73592caabe01a6284a5aa4d1682a6774673f1efb (patch) | |
tree | b8284effbd88b10614515dbe5c725455b6eea8ea | |
parent | Concession to cppcheck, which crashes on this line (diff) | |
download | icespider-73592caabe01a6284a5aa4d1682a6774673f1efb.tar.bz2 icespider-73592caabe01a6284a5aa4d1682a6774673f1efb.tar.xz icespider-73592caabe01a6284a5aa4d1682a6774673f1efb.zip |
requiredParameterNotFound is noreturn
-rw-r--r-- | icespider/core/irouteHandler.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/icespider/core/irouteHandler.h b/icespider/core/irouteHandler.h index 6781151..7853c35 100644 --- a/icespider/core/irouteHandler.h +++ b/icespider/core/irouteHandler.h @@ -33,16 +33,13 @@ namespace IceSpider { using RouteSerializers = std::map<MimeType, StreamSerializerFactoryPtr>; RouteSerializers routeSerializers; - void requiredParameterNotFound(const char *, const std::string_view & key) const; + [[noreturn]] void requiredParameterNotFound(const char *, const std::string_view & key) const; template<typename T, typename K> inline T requiredParameterNotFound(const char * s, const K & key) const { requiredParameterNotFound(s, key); - // LCOV_EXCL_START unreachable, requiredParameterNotFound always throws - return T(); - // LCOV_EXCL_STOP } void addRouteSerializer(const MimeType &, const StreamSerializerFactoryPtr &); |