*: add "noexcept" to many, many function prototypes
This eliminates some overhead, because the compiler doesn't need to consider these functions throwing.
This commit is contained in:
@@ -64,7 +64,7 @@ public:
|
||||
* Map the given relative URI to an absolute URI.
|
||||
*/
|
||||
gcc_pure
|
||||
virtual std::string MapUTF8(const char *uri_utf8) const = 0;
|
||||
virtual std::string MapUTF8(const char *uri_utf8) const noexcept = 0;
|
||||
|
||||
/**
|
||||
* Map the given relative URI to a local file path. Returns
|
||||
@@ -72,11 +72,11 @@ public:
|
||||
* support local files.
|
||||
*/
|
||||
gcc_pure
|
||||
virtual AllocatedPath MapFS(const char *uri_utf8) const;
|
||||
virtual AllocatedPath MapFS(const char *uri_utf8) const noexcept;
|
||||
|
||||
gcc_pure
|
||||
AllocatedPath MapChildFS(const char *uri_utf8,
|
||||
const char *child_utf8) const;
|
||||
const char *child_utf8) const noexcept;
|
||||
|
||||
/**
|
||||
* Check if the given URI points inside this storage. If yes,
|
||||
@@ -84,7 +84,7 @@ public:
|
||||
* string); if not, returns nullptr.
|
||||
*/
|
||||
gcc_pure
|
||||
virtual const char *MapToRelativeUTF8(const char *uri_utf8) const = 0;
|
||||
virtual const char *MapToRelativeUTF8(const char *uri_utf8) const noexcept = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user