make Keypressed() funcion inline

master
Andrzej Rybczak 17 years ago
parent 6768e3cdaa
commit d5a68a1a60
  1. 5
      src/helpers.cpp
  2. 7
      src/helpers.h

@ -224,11 +224,6 @@ void UpdateSongList(Menu<Song> *menu)
menu->Refresh();
}
bool Keypressed(int in, const int *key)
{
return in == key[0] || in == key[1];
}
#ifdef HAVE_TAGLIB_H
string FindSharedDir(Menu<Song> *menu)
{

@ -52,9 +52,12 @@ template <typename A, typename B> std::string StringPairToString(const std::pair
return pair.first;
}
void UpdateSongList(Menu<MPD::Song> *);
inline bool Keypressed(int in, const int *key)
{
return in == key[0] || in == key[1];
}
bool Keypressed(int, const int *);
void UpdateSongList(Menu<MPD::Song> *);
#ifdef HAVE_TAGLIB_H
std::string FindSharedDir(Menu<MPD::Song> *);

Loading…
Cancel
Save