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:
|
||||
CutterCore *core;
|
||||
PreviewWidget *previewDock;
|
||||
Notepad *notepadDock;
|
||||
DisassemblyWidget *disassemblyDock;
|
||||
SidebarWidget *sidebarDock;
|
||||
HexdumpWidget *hexdumpDock;
|
||||
@ -195,8 +197,6 @@ private:
|
||||
QDockWidget *calcDock;
|
||||
Omnibar *omnibar;
|
||||
SideBar *sideBar;
|
||||
PreviewWidget *previewDock;
|
||||
Notepad *notepadDock;
|
||||
Configuration *configuration;
|
||||
|
||||
bool doLock;
|
||||
|
@ -9,8 +9,8 @@
|
||||
|
||||
AsmOptionsDialog::AsmOptionsDialog(QWidget *parent)
|
||||
: QDialog(parent),
|
||||
ui(new Ui::AsmOptionsDialog),
|
||||
core(CutterCore::getInstance())
|
||||
core(CutterCore::getInstance()),
|
||||
ui(new Ui::AsmOptionsDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
||||
|
@ -12,12 +12,13 @@
|
||||
#include <QFileInfo>
|
||||
#include <QFileDialog>
|
||||
|
||||
// TODO Get rid of MainWindow
|
||||
OptionsDialog::OptionsDialog(MainWindow *main):
|
||||
QDialog(0), // parent may not be main
|
||||
analThread(this),
|
||||
defaultAnalLevel(1),
|
||||
core(CutterCore::getInstance()),
|
||||
main(main),
|
||||
core(CutterCore::getInstance()),
|
||||
defaultAnalLevel(1),
|
||||
ui(new Ui::OptionsDialog)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
@ -79,7 +79,6 @@ void XrefsDialog::on_fromTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int
|
||||
Q_UNUSED(column);
|
||||
|
||||
XrefDescription xref = item->data(0, Qt::UserRole).value<XrefDescription>();
|
||||
RAnalFunction *fcn = this->core->functionAt(xref.to);
|
||||
Core()->seek(xref.to);
|
||||
this->close();
|
||||
}
|
||||
@ -89,7 +88,6 @@ void XrefsDialog::on_toTreeWidget_itemDoubleClicked(QTreeWidgetItem *item, int c
|
||||
Q_UNUSED(column);
|
||||
|
||||
XrefDescription xref = item->data(0, Qt::UserRole).value<XrefDescription>();
|
||||
RAnalFunction *fcn = this->core->functionAt(xref.from);
|
||||
Core()->seek(xref.from);
|
||||
this->close();
|
||||
}
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include <unistd.h>
|
||||
#include <string.h>
|
||||
|
||||
void set_appimage_symlink(char* argv0)
|
||||
void set_appimage_symlink()
|
||||
{
|
||||
char* path = realpath("/proc/self/exe", NULL);
|
||||
char* i = strrchr(path, '/');
|
||||
@ -109,7 +109,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
// Hack to make it work with AppImage
|
||||
#ifdef __unix__
|
||||
set_appimage_symlink(argv[0]);
|
||||
set_appimage_symlink();
|
||||
#endif
|
||||
|
||||
int ret = a.exec();
|
||||
|
@ -547,6 +547,7 @@ duint DisassemblerGraphView::getInstrForMouseEvent(QMouseEvent* event)
|
||||
bool DisassemblerGraphView::getTokenForMouseEvent(QMouseEvent* event, Token & tokenOut)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
Q_UNUSED(tokenOut);
|
||||
/* TODO
|
||||
//Convert coordinates to system used in blocks
|
||||
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)
|
||||
{
|
||||
Q_UNUSED(graph_data);
|
||||
this->xreFromTreeWidget_2->clear();
|
||||
for (int i = 0; i < refs.size(); ++i)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user