From 8783783cfc94648f499fd8b25da1cfdf9ca4123c Mon Sep 17 00:00:00 2001 From: Dennis Oberst Date: Thu, 13 Jul 2023 11:18:07 +0200 Subject: [PATCH] QNativeIpcKey: make isEmpty() and isValid() noexcept They have no preconditions and cannot throw. Change-Id: I9c3020e00cffc84dfc3a14469cbb80557a4df5cf Reviewed-by: Marc Mutz (cherry picked from commit ba95594ea211a045f0e28326a066917a662c89db) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/ipc/qtipccommon.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/ipc/qtipccommon.h b/src/corelib/ipc/qtipccommon.h index c14c6dc7872..5640b6ff6db 100644 --- a/src/corelib/ipc/qtipccommon.h +++ b/src/corelib/ipc/qtipccommon.h @@ -85,12 +85,12 @@ public: key.swap(other.key); } - bool isEmpty() const + bool isEmpty() const noexcept { return key.isEmpty(); } - bool isValid() const + bool isValid() const noexcept { return type() != Type{}; }