fix warnings due to -Wunused-parameter

This commit is contained in:
Joachim Schmitz 2014-01-15 22:05:05 +01:00
parent d65c722ab6
commit f08bd8df67
15 changed files with 23 additions and 23 deletions

View file

@ -873,7 +873,7 @@ void Staff::updateOttava(Ottava* o)
// undoSetColor
//---------------------------------------------------------
void Staff::undoSetColor(const QColor& val)
void Staff::undoSetColor(const QColor& /*val*/)
{
// score()->undoChangeProperty(this, P_COLOR, val);
}

View file

@ -49,7 +49,7 @@ void ExampleView::updateAll()
update();
}
void ExampleView::adjustCanvasPosition(const Element* el, bool playBack)
void ExampleView::adjustCanvasPosition(const Element* /*el*/, bool /*playBack*/)
{
}
@ -100,7 +100,7 @@ void ExampleView::setDropRectangle(const QRectF&)
{
}
void ExampleView::cmdAddSlur(Note* firstNote, Note* lastNote)
void ExampleView::cmdAddSlur(Note* /*firstNote*/, Note* /*lastNote*/)
{
}
@ -108,7 +108,7 @@ void ExampleView::startEdit()
{
}
void ExampleView::startEdit(Element*, int startGrip)
void ExampleView::startEdit(Element*, int /*startGrip*/)
{
}

View file

@ -342,7 +342,7 @@ int OperationsModel::rowCount(const QModelIndex &parent) const
return counter;
}
int OperationsModel::columnCount(const QModelIndex &parent) const
int OperationsModel::columnCount(const QModelIndex &/*parent*/) const
{
return OperationCol::COL_COUNT;
}

View file

@ -2292,7 +2292,7 @@ Measure* MusicXml::xmlMeasure(Part* part, QDomElement e, int number, int measure
// setSLinePlacement -- helper for direction
//---------------------------------------------------------
static void setSLinePlacement(SLine* sli, float s, const QString pl, bool hasYoff, qreal yoff)
static void setSLinePlacement(SLine* sli, float /*s*/, const QString pl, bool hasYoff, qreal yoff)
{
/*
qDebug("setSLinePlacement s=%g pl='%s' hasy=%d yoff=%g",

View file

@ -33,7 +33,7 @@ namespace Ms {
// MediaDialog
//---------------------------------------------------------
MediaDialog::MediaDialog(QWidget* parent)
MediaDialog::MediaDialog(QWidget* /*parent*/)
: QDialog()
{
setupUi(this);

View file

@ -39,8 +39,8 @@ class MIconEngine : public QIconEngine
QString key() const;
QIconEngine *clone() const;
bool read(QDataStream &in) { return false; }
bool write(QDataStream &out) const { return false; }
bool read(QDataStream &/*in*/) { return false; }
bool write(QDataStream &/*out*/) const { return false; }
private:
QSharedDataPointer<MIconEnginePrivate> d;

View file

@ -203,7 +203,7 @@ void MuseScore::oscTempo(int val)
// oscTriggerPlugin
//---------------------------------------------------------
void MuseScore::oscTriggerPlugin(QString s)
void MuseScore::oscTriggerPlugin(QString /*s*/)
{
#if 0 // TODO
QStringList args = s.split(",");

View file

@ -543,7 +543,7 @@ static void paintPaletteElement(void* data, Element* e)
// paintEvent
//---------------------------------------------------------
void Palette::paintEvent(QPaintEvent* event)
void Palette::paintEvent(QPaintEvent* /*event*/)
{
qreal _spatium = gscore->spatium();
qreal mag = PALETTE_SPATIUM * extraMag / _spatium;

View file

@ -267,7 +267,7 @@ void PianoKeyItem::mouseReleaseEvent(QGraphicsSceneMouseEvent*)
// paint
//---------------------------------------------------------
void PianoKeyItem::paint(QPainter* p, const QStyleOptionGraphicsItem* o, QWidget*)
void PianoKeyItem::paint(QPainter* p, const QStyleOptionGraphicsItem* /*o*/, QWidget*)
{
p->setRenderHint(QPainter::Antialiasing, true);
p->setPen(QPen(Qt::black, .8));

View file

@ -230,7 +230,7 @@ void PlayPanel::setPos(int utick)
// heartBeat
//---------------------------------------------------------
void PlayPanel::heartBeat(int tick, int utick, int samples)
void PlayPanel::heartBeat(int /*tick*/, int utick, int samples)
{
if (cachedTickPosition != utick) {
updatePosLabel(utick);

View file

@ -5538,7 +5538,7 @@ Element* ScoreView::elementNear(QPointF p)
// posChanged
//---------------------------------------------------------
void ScoreView::posChanged(POS pos, unsigned tick)
void ScoreView::posChanged(POS pos, unsigned /*tick*/)
{
switch (pos) {
case POS::CURRENT:

View file

@ -147,7 +147,7 @@ void SynthControl::gainChanged(double val, int)
// masterTuningChanged
//---------------------------------------------------------
void SynthControl::masterTuningChanged(double val)
void SynthControl::masterTuningChanged(double /*val*/)
{
changeTuningButton->setEnabled(true);
}

View file

@ -125,7 +125,7 @@ void TimeDialog::zChanged(int val)
// nChanged
//---------------------------------------------------------
void TimeDialog::nChanged(int val)
void TimeDialog::nChanged(int /*val*/)
{
nText->setText(QString("%1").arg(denominator()));
Fraction sig(zNominal->value(), denominator());

View file

@ -64,10 +64,10 @@ MyWebPage::MyWebPage(QObject *parent)
//---------------------------------------------------------
QObject* MyWebPage::createPlugin(
const QString &classid,
const QUrl &url,
const QStringList &paramNames,
const QStringList &paramValues)
const QString &/*classid*/,
const QUrl &/*url*/,
const QStringList &/*paramNames*/,
const QStringList &/*paramValues*/)
{
// Create the widget using QUiLoader.
// This means that the widgets don't need to be registered
@ -223,7 +223,7 @@ QSize MyWebView::sizeHint() const
// WebPageDockWidget
//---------------------------------------------------------
WebPageDockWidget::WebPageDockWidget(MuseScore* mscore, QWidget* parent)
WebPageDockWidget::WebPageDockWidget(MuseScore* /*mscore*/, QWidget* parent)
: QDockWidget(parent)
{
setWindowTitle("MuseScore Connect");
@ -391,7 +391,7 @@ void WebPageDockWidget::saveOnlineFinished() {
reply->deleteLater();
}
bool WebPageDockWidget::setCurrentScoreSource(QString source)
bool WebPageDockWidget::setCurrentScoreSource(QString /*source*/)
{
Score* score = mscore->currentScore();
if(score) {

View file

@ -291,7 +291,7 @@ ColorSchemePrivate::ColorSchemePrivate(QPalette::ColorGroup state,
// init
//---------------------------------------------------------
void ColorSchemePrivate::init(QPalette::ColorGroup state, const char* group, SetDefaultColors defaults) {
void ColorSchemePrivate::init(QPalette::ColorGroup state, const char* /*group*/, SetDefaultColors defaults) {
// loaded-from-config colors
_brushes.fg[0] = SET_DEFAULT(NormalText);
_brushes.fg[1] = SET_DEFAULT(InactiveText);