fix warnings due to -Wunused-parameter
This commit is contained in:
parent
d65c722ab6
commit
f08bd8df67
15 changed files with 23 additions and 23 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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*/)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -33,7 +33,7 @@ namespace Ms {
|
|||
// MediaDialog
|
||||
//---------------------------------------------------------
|
||||
|
||||
MediaDialog::MediaDialog(QWidget* parent)
|
||||
MediaDialog::MediaDialog(QWidget* /*parent*/)
|
||||
: QDialog()
|
||||
{
|
||||
setupUi(this);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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(",");
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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));
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -147,7 +147,7 @@ void SynthControl::gainChanged(double val, int)
|
|||
// masterTuningChanged
|
||||
//---------------------------------------------------------
|
||||
|
||||
void SynthControl::masterTuningChanged(double val)
|
||||
void SynthControl::masterTuningChanged(double /*val*/)
|
||||
{
|
||||
changeTuningButton->setEnabled(true);
|
||||
}
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -64,10 +64,10 @@ MyWebPage::MyWebPage(QObject *parent)
|
|||
//---------------------------------------------------------
|
||||
|
||||
QObject* MyWebPage::createPlugin(
|
||||
const QString &classid,
|
||||
const QUrl &url,
|
||||
const QStringList ¶mNames,
|
||||
const QStringList ¶mValues)
|
||||
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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue