mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
ircd: Final hints for devirtualization opportunities.
This commit is contained in:
parent
4818d7b651
commit
917a73d048
3 changed files with 7 additions and 6 deletions
|
@ -68,7 +68,7 @@ struct ircd::client
|
|||
client(const client &) = delete;
|
||||
client &operator=(client &&) = delete;
|
||||
client &operator=(const client &) = delete;
|
||||
virtual ~client() noexcept;
|
||||
~client() noexcept;
|
||||
|
||||
friend ipport remote(const client &);
|
||||
friend ipport local(const client &);
|
||||
|
|
|
@ -80,7 +80,7 @@ struct ircd::exception
|
|||
ssize_t generate(const char *const &fmt, const va_rtti &ap) noexcept;
|
||||
|
||||
public:
|
||||
const char *what() const noexcept override
|
||||
const char *what() const noexcept final override
|
||||
{
|
||||
return buf;
|
||||
}
|
||||
|
|
|
@ -92,6 +92,7 @@ struct ircd::crh::hash
|
|||
|
||||
/// SHA-256 hashing device.
|
||||
struct ircd::crh::sha256
|
||||
final
|
||||
:hash
|
||||
{
|
||||
struct ctx;
|
||||
|
@ -107,10 +108,10 @@ struct ircd::crh::sha256
|
|||
std::unique_ptr<ctx> ctx;
|
||||
|
||||
public:
|
||||
size_t length() const override final;
|
||||
void digest(const mutable_raw_buffer &) const override final;
|
||||
void finalize(const mutable_raw_buffer &) override final;
|
||||
void update(const const_raw_buffer &) override final;
|
||||
size_t length() const override;
|
||||
void digest(const mutable_raw_buffer &) const override;
|
||||
void finalize(const mutable_raw_buffer &) override;
|
||||
void update(const const_raw_buffer &) override;
|
||||
|
||||
sha256(const mutable_raw_buffer &, const const_raw_buffer &);
|
||||
sha256(const const_raw_buffer &);
|
||||
|
|
Loading…
Reference in a new issue