From 2ba3d923a23922c198c1b883fa83af0d00ac46c0 Mon Sep 17 00:00:00 2001 From: Tim Siebels Date: Mon, 2 Oct 2017 18:26:07 +0200 Subject: [PATCH] %p is only meant for pointers, use %x for hex (#34) and fix initialization order while at it --- src/widgets/CodeGraphic.h | 2 +- src/widgets/DisassemblerGraphView.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/widgets/CodeGraphic.h b/src/widgets/CodeGraphic.h index fa10bf4b..f07e31e6 100644 --- a/src/widgets/CodeGraphic.h +++ b/src/widgets/CodeGraphic.h @@ -18,8 +18,8 @@ public slots: void fillData(); private: - MainWindow *main; QGraphicsView *codeGraphic; + MainWindow *main; }; #endif // GRAPHICSBAR_H diff --git a/src/widgets/DisassemblerGraphView.cpp b/src/widgets/DisassemblerGraphView.cpp index 1c3f856c..9366f91c 100644 --- a/src/widgets/DisassemblerGraphView.cpp +++ b/src/widgets/DisassemblerGraphView.cpp @@ -157,7 +157,7 @@ void DisassemblerGraphView::copy_address() QClipboard* clipboard = QApplication::clipboard(); clipboard->clear(); QMimeData mime; - mime.setText(QString().sprintf("0x%p", this->get_cursor_pos())); + mime.setText(QString().sprintf("0x%llx", this->get_cursor_pos())); clipboard->setMimeData(&mime); }