OTHER: foreach -> each
This commit is contained in:
parent
a18cea60f0
commit
f16efc80e3
1 changed files with 6 additions and 15 deletions
|
@ -236,10 +236,7 @@ bool
|
||||||
XMMSHandler::playlist_changed (const Xmms::Dict &list)
|
XMMSHandler::playlist_changed (const Xmms::Dict &list)
|
||||||
{
|
{
|
||||||
QHash<QString, QString> hash;
|
QHash<QString, QString> hash;
|
||||||
#ifdef foreach
|
list.each (boost::bind (&XMMSHandler::DictToQHash, this,
|
||||||
#undef foreach
|
|
||||||
#endif
|
|
||||||
list.foreach (boost::bind (&XMMSHandler::DictToQHash, this,
|
|
||||||
_1, _2, boost::ref (hash)));
|
_1, _2, boost::ref (hash)));
|
||||||
emit playlistChanged (hash);
|
emit playlistChanged (hash);
|
||||||
return true;
|
return true;
|
||||||
|
@ -250,10 +247,7 @@ XMMSHandler::medialib_info (const Xmms::PropDict &propdict)
|
||||||
{
|
{
|
||||||
|
|
||||||
QHash<QString, QString> hash;
|
QHash<QString, QString> hash;
|
||||||
#ifdef foreach
|
propdict.each (boost::bind (&XMMSHandler::PropDictToQHash, this,
|
||||||
#undef foreach
|
|
||||||
#endif
|
|
||||||
propdict.foreach (boost::bind (&XMMSHandler::PropDictToQHash, this,
|
|
||||||
_1, _2, _3, boost::ref (hash)));
|
_1, _2, _3, boost::ref (hash)));
|
||||||
unsigned int id = propdict.get<int>("id");
|
unsigned int id = propdict.get<int>("id");
|
||||||
emit mediainfoChanged (id, hash);
|
emit mediainfoChanged (id, hash);
|
||||||
|
@ -303,10 +297,7 @@ bool
|
||||||
XMMSHandler::volume_get (const Xmms::Dict &levels)
|
XMMSHandler::volume_get (const Xmms::Dict &levels)
|
||||||
{
|
{
|
||||||
QHash<QString, QString> hash;
|
QHash<QString, QString> hash;
|
||||||
#ifdef foreach
|
levels.each (boost::bind (&XMMSHandler::DictToQHash, this,
|
||||||
#undef foreach
|
|
||||||
#endif
|
|
||||||
levels.foreach (boost::bind (&XMMSHandler::DictToQHash, this,
|
|
||||||
_1, _2, boost::ref (hash)));
|
_1, _2, boost::ref (hash)));
|
||||||
QList<QString> Values = hash.values();
|
QList<QString> Values = hash.values();
|
||||||
QListIterator<QString> vol (Values);
|
QListIterator<QString> vol (Values);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue