change namespace Playlist into class

This commit is contained in:
Andrzej Rybczak
2009-02-13 22:27:26 +01:00
parent 08e162f6ac
commit 6e167d67e2
16 changed files with 246 additions and 205 deletions

View File

@@ -24,12 +24,12 @@
#include "charset.h"
#include "global.h"
#include "helpers.h"
#include "playlist.h"
#include "tag_editor.h"
using namespace MPD;
using Global::Config;
using Global::Mpd;
using Global::mPlaylist;
using Global::wFooter;
using std::string;
@@ -225,9 +225,9 @@ void UpdateSongList(Menu<Song> *menu)
bool bold = 0;
for (size_t i = 0; i < menu->Size(); i++)
{
for (size_t j = 0; j < mPlaylist->Size(); j++)
for (size_t j = 0; j < myPlaylist->Main()->Size(); j++)
{
if (mPlaylist->at(j).GetHash() == menu->at(i).GetHash())
if (myPlaylist->Main()->at(j).GetHash() == menu->at(i).GetHash())
{
bold = 1;
break;