Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/cad/fritzing/files/patch-src_items_itembase.cpp
19260 views
1
--- src/items/itembase.cpp.orig 2025-04-02 10:33:24 UTC
2
+++ src/items/itembase.cpp
3
@@ -55,6 +55,8 @@ along with Fritzing. If not, see <http://www.gnu.org/
4
#include <QClipboard>
5
#include <qmath.h>
6
7
+#include <cstdint>
8
+
9
/////////////////////////////////
10
11
static QRegularExpression NumberMatcher;
12
@@ -1999,7 +2001,7 @@ void ItemBase::debugInfo2(const QString & msg) const
13
.arg(this->viewLayerID())
14
.arg(this->viewLayerPlacement())
15
.arg(this->wireFlags())
16
- .arg((long) dynamic_cast<const QGraphicsItem *>(this), 0, 16)
17
+ .arg(static_cast<long>(reinterpret_cast<std::uintptr_t>(dynamic_cast<const QGraphicsItem *>(this))), 0, 16)
18
.arg(m_viewID)
19
.arg(this->zValue())
20
.arg(this->pos().x())
21
22