Commit 0896f444 authored by Max Kellermann's avatar Max Kellermann

util/Domain: add `noexcept`

parent 62087239
......@@ -34,21 +34,21 @@ class Domain {
const char *const name;
public:
constexpr explicit Domain(const char *_name)
constexpr explicit Domain(const char *_name) noexcept
:name(_name) {}
Domain(const Domain &) = delete;
Domain &operator=(const Domain &) = delete;
constexpr const char *GetName() const {
constexpr const char *GetName() const noexcept {
return name;
}
bool operator==(const Domain &other) const {
bool operator==(const Domain &other) const noexcept {
return this == &other;
}
bool operator!=(const Domain &other) const {
bool operator!=(const Domain &other) const noexcept {
return !(*this == other);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment