Skip to content

Commit

Permalink
convert (void)parameter to anonymous parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
dekarl committed May 25, 2013
1 parent e2f60da commit f11ca08
Showing 1 changed file with 9 additions and 26 deletions.
35 changes: 9 additions & 26 deletions mythplugins/mythmusic/mythmusic/visualize.cpp
Expand Up @@ -544,10 +544,8 @@ static class StereoScopeFactory : public VisFactory
return 1;
}

VisualBase *create(MainVisual *parent, const QString &pluginName) const
VisualBase *create(MainVisual */*parent*/, const QString &/*pluginName*/) const
{
(void)parent;
(void)pluginName;
return new StereoScope();
}
}StereoScopeFactory;
Expand All @@ -572,10 +570,8 @@ static class MonoScopeFactory : public VisFactory
return 1;
}

VisualBase *create(MainVisual *parent, const QString &pluginName) const
VisualBase *create(MainVisual */*parent*/, const QString &/*pluginName*/) const
{
(void)parent;
(void)pluginName;
return new MonoScope();
}
}MonoScopeFactory;
Expand Down Expand Up @@ -819,10 +815,8 @@ static class SpectrumFactory : public VisFactory
return 1;
}

VisualBase *create(MainVisual *parent, const QString &pluginName) const
VisualBase *create(MainVisual */*parent*/, const QString &/*pluginName*/) const
{
(void)parent;
(void)pluginName;
return new Spectrum();
}
}SpectrumFactory;
Expand Down Expand Up @@ -913,10 +907,8 @@ static class SquaresFactory : public VisFactory
return 1;
}

VisualBase *create(MainVisual *parent, const QString &pluginName) const
VisualBase *create(MainVisual */*parent*/, const QString &/*pluginName*/) const
{
(void)parent;
(void)pluginName;
return new Squares();
}
}SquaresFactory;
Expand Down Expand Up @@ -1116,10 +1108,8 @@ bool Piano::process(VisualNode *node)
return false;
}

bool Piano::process_all_types(VisualNode *node, bool this_will_be_displayed)
bool Piano::process_all_types(VisualNode *node, bool /*this_will_be_displayed*/)
{
(void) this_will_be_displayed;

// Take a bunch of data in *node and break it down into piano key spectrum values
// NB: Remember the state data between calls, so as to accumulate more accurate results.
bool allZero = true;
Expand Down Expand Up @@ -1385,10 +1375,8 @@ static class PianoFactory : public VisFactory
return 1;
}

VisualBase *create(MainVisual *parent, const QString &pluginName) const
VisualBase *create(MainVisual */*parent*/, const QString &/*pluginName*/) const
{
(void)parent;
(void)pluginName;
return new Piano();
}
}PianoFactory;
Expand Down Expand Up @@ -1457,9 +1445,8 @@ void AlbumArt::resize(const QSize &newsize)
m_size = newsize;
}

bool AlbumArt::process(VisualNode *node)
bool AlbumArt::process(VisualNode */*node*/)
{
(void) node;
return false;
}

Expand Down Expand Up @@ -1585,10 +1572,8 @@ static class AlbumArtFactory : public VisFactory
return 1;
}

VisualBase *create(MainVisual *parent, const QString &pluginName) const
VisualBase *create(MainVisual */*parent*/, const QString &/*pluginName*/) const
{
(void) parent;
(void)pluginName;
return new AlbumArt();
}
}AlbumArtFactory;
Expand Down Expand Up @@ -1637,10 +1622,8 @@ static class BlankFactory : public VisFactory
return 1;
}

VisualBase *create(MainVisual *parent, const QString &pluginName) const
VisualBase *create(MainVisual */*parent*/, const QString &/*pluginName*/) const
{
(void)parent;
(void)pluginName;
return new Blank();
}
}BlankFactory;

0 comments on commit f11ca08

Please sign in to comment.