make Keypressed() funcion inline

This commit is contained in:
Andrzej Rybczak
2009-03-12 19:29:38 +01:00
parent 6768e3cdaa
commit d5a68a1a60
2 changed files with 5 additions and 7 deletions

View File

@@ -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> *);