Fix Warnings

This commit is contained in:
Florian Märkl 2017-12-14 20:51:24 +01:00
parent c42b566a4c
commit 0ca6fc6b29
8 changed files with 7 additions and 9 deletions

View File

@ -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),

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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)
{

View File

@ -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),

View File

@ -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);

View File

@ -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();
});

View File

@ -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;