From 9d8e6a26875e68b92de4d24b324cafd3a169cd2d Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Mon, 24 Sep 2012 10:09:47 +0200 Subject: [PATCH] playlist: store song hashes in hash map, not a tree --- src/playlist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/playlist.h b/src/playlist.h index 72349489..4ffe9713 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -21,7 +21,7 @@ #ifndef _PLAYLIST_H #define _PLAYLIST_H -#include +#include #include "interfaces.h" #include "screen.h" @@ -93,7 +93,7 @@ private: std::string TotalLength(); std::string itsBufferedStats; - std::map itsSongHashes; + std::unordered_map itsSongHashes; size_t itsTotalLength; size_t itsRemainingTime;