mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-31 08:37:26 +00:00
Fix Warnings
This commit is contained in:
parent
c42b566a4c
commit
0ca6fc6b29
@ -84,6 +84,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
QMainWindow(parent),
|
||||
core(CutterCore::getInstance()),
|
||||
notepadDock(nullptr),
|
||||
pseudocodeDock(nullptr),
|
||||
asmDock(nullptr),
|
||||
calcDock(nullptr),
|
||||
omnibar(nullptr),
|
||||
@ -99,7 +100,6 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
relocsDock(nullptr),
|
||||
commentsDock(nullptr),
|
||||
stringsDock(nullptr),
|
||||
pseudocodeDock(nullptr),
|
||||
flagsDock(nullptr),
|
||||
dashboardDock(nullptr),
|
||||
gotoEntry(nullptr),
|
||||
|
@ -34,7 +34,7 @@ void CommentsDialog::setComment(const QString &comment)
|
||||
ui->textEdit->document()->setPlainText(comment);
|
||||
}
|
||||
|
||||
bool CommentsDialog::eventFilter(QObject *obj, QEvent *event)
|
||||
bool CommentsDialog::eventFilter(QObject */*obj*/, QEvent *event)
|
||||
{
|
||||
if(event -> type() == QEvent::KeyPress)
|
||||
{
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "utils/Helpers.h"
|
||||
#include "utils/Configuration.h"
|
||||
|
||||
AsmOptionsWidget::AsmOptionsWidget(PreferencesDialog *dialog, QWidget *parent)
|
||||
AsmOptionsWidget::AsmOptionsWidget(PreferencesDialog */*dialog*/, QWidget *parent)
|
||||
: QDialog(parent),
|
||||
ui(new Ui::AsmOptionsWidget)
|
||||
{
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "utils/Helpers.h"
|
||||
#include "utils/Configuration.h"
|
||||
|
||||
GeneralOptionsWidget::GeneralOptionsWidget(PreferencesDialog *dialog, QWidget *parent)
|
||||
GeneralOptionsWidget::GeneralOptionsWidget(PreferencesDialog */*dialog*/, QWidget *parent)
|
||||
: QDialog(parent),
|
||||
ui(new Ui::GeneralOptionsWidget)
|
||||
{
|
||||
|
@ -18,10 +18,10 @@ DisassemblyContextMenu::DisassemblyContextMenu(QWidget *parent)
|
||||
actionRename(this),
|
||||
actionRenameUsedHere(this),
|
||||
actionXRefs(this),
|
||||
actionDisplayOptions(this),
|
||||
actionDeleteComment(this),
|
||||
actionDeleteFlag(this),
|
||||
actionDeleteFunction(this),
|
||||
actionDisplayOptions(this),
|
||||
actionSetBaseBinary(this),
|
||||
actionSetBaseOctal(this),
|
||||
actionSetBaseDecimal(this),
|
||||
|
@ -29,7 +29,7 @@ SvgIconEngine::SvgIconEngine(const QByteArray &svgData, QColor tintColor)
|
||||
this->svgData = qhelpers::applyColorToSvg(svgData, tintColor);
|
||||
}
|
||||
|
||||
void SvgIconEngine::paint(QPainter *painter, const QRect &rect, QIcon::Mode mode, QIcon::State state)
|
||||
void SvgIconEngine::paint(QPainter *painter, const QRect &rect, QIcon::Mode /*mode*/, QIcon::State /*state*/)
|
||||
{
|
||||
QSvgRenderer renderer(svgData);
|
||||
renderer.render(painter, rect);
|
||||
|
@ -22,7 +22,7 @@ PseudocodeWidget::PseudocodeWidget(QWidget *parent, Qt::WindowFlags flags) :
|
||||
connect(Core(), SIGNAL(functionRenamed(QString, QString)), this, SLOT(refreshPseudocode()));
|
||||
connect(Core(), SIGNAL(varsChanged()), this, SLOT(refreshPseudocode()));
|
||||
connect(Core(), SIGNAL(asmOptionsChanged()), this, SLOT(refreshPseudocode()));
|
||||
connect(Core(), &CutterCore::instructionChanged, this, [this](RVA offset) {
|
||||
connect(Core(), &CutterCore::instructionChanged, this, [this](/*RVA offset*/) {
|
||||
refreshPseudocode();
|
||||
});
|
||||
|
||||
|
@ -275,8 +275,6 @@ void VisualNavbar::fillData()
|
||||
int w = this->graphicsView->width();
|
||||
int h = this->graphicsView->height();
|
||||
|
||||
RVA current_address = Core()->getOffset();
|
||||
|
||||
double width_per_byte = (double)w/(double)totalMappedSize;
|
||||
xToAddress.clear();
|
||||
double current_x = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user