playlist: store song hashes in hash map, not a tree

This commit is contained in:
Andrzej Rybczak
2012-09-24 10:09:47 +02:00
parent b487f10f10
commit 9d8e6a2687

View File

@@ -21,7 +21,7 @@
#ifndef _PLAYLIST_H #ifndef _PLAYLIST_H
#define _PLAYLIST_H #define _PLAYLIST_H
#include <map> #include <unordered_map>
#include "interfaces.h" #include "interfaces.h"
#include "screen.h" #include "screen.h"
@@ -93,7 +93,7 @@ private:
std::string TotalLength(); std::string TotalLength();
std::string itsBufferedStats; std::string itsBufferedStats;
std::map<size_t, int> itsSongHashes; std::unordered_map<size_t, int> itsSongHashes;
size_t itsTotalLength; size_t itsTotalLength;
size_t itsRemainingTime; size_t itsRemainingTime;