Skip to content

Commit

Permalink
Modernize code
Browse files Browse the repository at this point in the history
  • Loading branch information
drfiemost committed Aug 13, 2024
1 parent b4bea56 commit 062f1a9
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,18 +52,15 @@ using std::endl;
#include <sidplayfp/SidInfo.h>
#include <sidplayfp/SidTuneInfo.h>

#ifdef HAVE_CXX11
# include <unordered_map>
typedef std::unordered_map<std::string, double> filter_map_t;
typedef std::unordered_map<std::string, double>::const_iterator filter_map_iter_t;
#else
# include <map>
typedef std::map<std::string, double> filter_map_t;
typedef std::map<std::string, double>::const_iterator filter_map_iter_t;
#endif

#include <unordered_map>

using filter_map_t = std::unordered_map<std::string, double>;
using filter_map_iter_t = std::unordered_map<std::string, double>::const_iterator;


// Previous song select timeout (4 secs)
#define SID2_PREV_SONG_TIMEOUT 4000
constexpr uint_least32_t SID2_PREV_SONG_TIMEOUT = 4000;


const char* ERR_NOT_ENOUGH_MEMORY = "ERROR: Not enough memory.";
Expand Down

0 comments on commit 062f1a9

Please sign in to comment.