diff --git a/libraries/networking/src/PacketReceiver.cpp b/libraries/networking/src/PacketReceiver.cpp index f9fe5a9c23..462678d76a 100644 --- a/libraries/networking/src/PacketReceiver.cpp +++ b/libraries/networking/src/PacketReceiver.cpp @@ -104,7 +104,7 @@ QMetaMethod PacketReceiver::matchingMethodForListener(PacketType::Value type, QO << possibleSignatures.toList() << "- but such a method was not found."; } - assert(methodIndex >= 0); + Q_ASSERT(methodIndex >= 0); // return the converted QMetaMethod if (methodIndex >= 0) {