From 66a1d8758e242bd6aacf0a23448ec4ffd5b6e4a9 Mon Sep 17 00:00:00 2001 From: mark mitchell Date: Wed, 4 Nov 2015 22:36:33 -0800 Subject: [PATCH] Fix for issue #36 --- src/Segment/SegmentLine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Segment/SegmentLine.cpp b/src/Segment/SegmentLine.cpp index b6d63065..881c7a56 100644 --- a/src/Segment/SegmentLine.cpp +++ b/src/Segment/SegmentLine.cpp @@ -16,7 +16,7 @@ SegmentLine::SegmentLine(QGraphicsScene &scene, m_segment (segment) { LOG4CPP_DEBUG_S ((*mainCat)) << "SegmentLine::SegmentLine" - << " address=0x" << std::hex << (unsigned long) this; + << " address=0x" << std::hex << (qintptr) this; setData (DATA_KEY_GRAPHICS_ITEM_TYPE, QVariant (GRAPHICS_ITEM_TYPE_SEGMENT)); @@ -35,7 +35,7 @@ SegmentLine::SegmentLine(QGraphicsScene &scene, SegmentLine::~SegmentLine () { LOG4CPP_DEBUG_S ((*mainCat)) << "SegmentLine::~SegmentLine" - << " address=0x" << std::hex << (unsigned long) this; + << " address=0x" << std::hex << (qintptr) this; } void SegmentLine::hoverEnterEvent(QGraphicsSceneHoverEvent * /* event */)