From e0048a3c88d5287c1cd09a4fc978c6a3e7952fbe Mon Sep 17 00:00:00 2001 From: Marcus Tillmanns Date: Mon, 26 Aug 2024 12:15:51 +0200 Subject: [PATCH] Utils: Remove QTC_ASSERT definition Change-Id: Ie32971f8e97a77db9a503d3e44f4bee1d537aef3 Reviewed-by: Eike Ziller --- src/libs/utils/layoutbuilder.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/libs/utils/layoutbuilder.cpp b/src/libs/utils/layoutbuilder.cpp index efdf96aa4c6..05f690ee0a2 100644 --- a/src/libs/utils/layoutbuilder.cpp +++ b/src/libs/utils/layoutbuilder.cpp @@ -3,8 +3,9 @@ #include "layoutbuilder.h" -#include -#include +#include "filepath.h" +#include "icon.h" +#include "qtcassert.h" #include #include @@ -24,13 +25,6 @@ namespace Layouting { -// That's cut down qtcassert.{c,h} to avoid the dependency. -#define QTC_STRINGIFY_HELPER(x) #x -#define QTC_STRINGIFY(x) QTC_STRINGIFY_HELPER(x) -#define QTC_STRING(cond) qDebug("SOFT ASSERT: \"%s\" in %s: %s", cond, __FILE__, QTC_STRINGIFY(__LINE__)) -#define QTC_ASSERT(cond, action) if (Q_LIKELY(cond)) {} else { QTC_STRING(#cond); action; } do {} while (0) -#define QTC_CHECK(cond) if (cond) {} else { QTC_STRING(#cond); } do {} while (0) - template typename X::Implementation *access(const X *x) {