mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-24 05:45:27 +00:00
Removed warnings
This commit is contained in:
parent
4c971ef8e8
commit
638956b41b
@ -186,6 +186,8 @@ private slots:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
CutterCore *core;
|
CutterCore *core;
|
||||||
|
PreviewWidget *previewDock;
|
||||||
|
Notepad *notepadDock;
|
||||||
DisassemblyWidget *disassemblyDock;
|
DisassemblyWidget *disassemblyDock;
|
||||||
SidebarWidget *sidebarDock;
|
SidebarWidget *sidebarDock;
|
||||||
HexdumpWidget *hexdumpDock;
|
HexdumpWidget *hexdumpDock;
|
||||||
@ -195,8 +197,6 @@ private:
|
|||||||
QDockWidget *calcDock;
|
QDockWidget *calcDock;
|
||||||
Omnibar *omnibar;
|
Omnibar *omnibar;
|
||||||
SideBar *sideBar;
|
SideBar *sideBar;
|
||||||
PreviewWidget *previewDock;
|
|
||||||
Notepad *notepadDock;
|
|
||||||
Configuration *configuration;
|
Configuration *configuration;
|
||||||
|
|
||||||
bool doLock;
|
bool doLock;
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
AsmOptionsDialog::AsmOptionsDialog(QWidget *parent)
|
AsmOptionsDialog::AsmOptionsDialog(QWidget *parent)
|
||||||
: QDialog(parent),
|
: QDialog(parent),
|
||||||
ui(new Ui::AsmOptionsDialog),
|
core(CutterCore::getInstance()),
|
||||||
core(CutterCore::getInstance())
|
ui(new Ui::AsmOptionsDialog)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
|
@ -12,12 +12,13 @@
|
|||||||
#include <QFileInfo>
|
#include <QFileInfo>
|
||||||
#include <QFileDialog>
|
#include <QFileDialog>
|
||||||
|
|
||||||
|
// TODO Get rid of MainWindow
|
||||||
OptionsDialog::OptionsDialog(MainWindow *main):
|
OptionsDialog::OptionsDialog(MainWindow *main):
|
||||||
QDialog(0), // parent may not be main
|
QDialog(0), // parent may not be main
|
||||||
analThread(this),
|
analThread(this),
|
||||||
defaultAnalLevel(1),
|
|
||||||
core(CutterCore::getInstance()),
|
|
||||||
main(main),
|
main(main),
|
||||||
|
core(CutterCore::getInstance()),
|
||||||
|
defaultAnalLevel(1),
|
||||||
ui(new Ui::OptionsDialog)
|
ui(new Ui::OptionsDialog)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
@ -79,7 +79,6 @@ void XrefsDialog::on_fromTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int
|
|||||||
Q_UNUSED(column);
|
Q_UNUSED(column);
|
||||||
|
|
||||||
XrefDescription xref = item->data(0, Qt::UserRole).value<XrefDescription>();
|
XrefDescription xref = item->data(0, Qt::UserRole).value<XrefDescription>();
|
||||||
RAnalFunction *fcn = this->core->functionAt(xref.to);
|
|
||||||
Core()->seek(xref.to);
|
Core()->seek(xref.to);
|
||||||
this->close();
|
this->close();
|
||||||
}
|
}
|
||||||
@ -89,7 +88,6 @@ void XrefsDialog::on_toTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int c
|
|||||||
Q_UNUSED(column);
|
Q_UNUSED(column);
|
||||||
|
|
||||||
XrefDescription xref = item->data(0, Qt::UserRole).value<XrefDescription>();
|
XrefDescription xref = item->data(0, Qt::UserRole).value<XrefDescription>();
|
||||||
RAnalFunction *fcn = this->core->functionAt(xref.from);
|
|
||||||
Core()->seek(xref.from);
|
Core()->seek(xref.from);
|
||||||
this->close();
|
this->close();
|
||||||
}
|
}
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
void set_appimage_symlink(char* argv0)
|
void set_appimage_symlink()
|
||||||
{
|
{
|
||||||
char* path = realpath("/proc/self/exe", NULL);
|
char* path = realpath("/proc/self/exe", NULL);
|
||||||
char* i = strrchr(path, '/');
|
char* i = strrchr(path, '/');
|
||||||
@ -109,7 +109,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// Hack to make it work with AppImage
|
// Hack to make it work with AppImage
|
||||||
#ifdef __unix__
|
#ifdef __unix__
|
||||||
set_appimage_symlink(argv[0]);
|
set_appimage_symlink();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int ret = a.exec();
|
int ret = a.exec();
|
||||||
|
@ -547,6 +547,7 @@ duint DisassemblerGraphView::getInstrForMouseEvent(QMouseEvent* event)
|
|||||||
bool DisassemblerGraphView::getTokenForMouseEvent(QMouseEvent* event, Token & tokenOut)
|
bool DisassemblerGraphView::getTokenForMouseEvent(QMouseEvent* event, Token & tokenOut)
|
||||||
{
|
{
|
||||||
Q_UNUSED(event);
|
Q_UNUSED(event);
|
||||||
|
Q_UNUSED(tokenOut);
|
||||||
/* TODO
|
/* TODO
|
||||||
//Convert coordinates to system used in blocks
|
//Convert coordinates to system used in blocks
|
||||||
int xofs = this->horizontalScrollBar()->value();
|
int xofs = this->horizontalScrollBar()->value();
|
||||||
|
@ -147,6 +147,7 @@ void SidebarWidget::get_refs_data(RVA addr)
|
|||||||
|
|
||||||
void SidebarWidget::fill_refs(QList<XrefDescription> refs, QList<XrefDescription> xrefs, QList<int> graph_data)
|
void SidebarWidget::fill_refs(QList<XrefDescription> refs, QList<XrefDescription> xrefs, QList<int> graph_data)
|
||||||
{
|
{
|
||||||
|
Q_UNUSED(graph_data);
|
||||||
this->xreFromTreeWidget_2->clear();
|
this->xreFromTreeWidget_2->clear();
|
||||||
for (int i = 0; i < refs.size(); ++i)
|
for (int i = 0; i < refs.size(); ++i)
|
||||||
{
|
{
|
||||||
@ -244,4 +245,4 @@ void SidebarWidget::setScrollMode()
|
|||||||
{
|
{
|
||||||
qhelpers::setVerticalScrollMode(ui->xreFromTreeWidget_2);
|
qhelpers::setVerticalScrollMode(ui->xreFromTreeWidget_2);
|
||||||
qhelpers::setVerticalScrollMode(ui->xrefToTreeWidget_2);
|
qhelpers::setVerticalScrollMode(ui->xrefToTreeWidget_2);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user