QNativeIpcKey: make isEmpty() and isValid() noexcept
They have no preconditions and cannot throw. Pick-to: 6.6 Change-Id: I9c3020e00cffc84dfc3a14469cbb80557a4df5cf Reviewed-by: Marc Mutz <marc.mutz@qt.io>
This commit is contained in:
parent
b8fb120384
commit
ba95594ea2
@ -85,12 +85,12 @@ public:
|
|||||||
key.swap(other.key);
|
key.swap(other.key);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isEmpty() const
|
bool isEmpty() const noexcept
|
||||||
{
|
{
|
||||||
return key.isEmpty();
|
return key.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isValid() const
|
bool isValid() const noexcept
|
||||||
{
|
{
|
||||||
return type() != Type{};
|
return type() != Type{};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user