make Keypressed() funcion inline
This commit is contained in:
@@ -224,11 +224,6 @@ void UpdateSongList(Menu<Song> *menu)
|
|||||||
menu->Refresh();
|
menu->Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Keypressed(int in, const int *key)
|
|
||||||
{
|
|
||||||
return in == key[0] || in == key[1];
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifdef HAVE_TAGLIB_H
|
#ifdef HAVE_TAGLIB_H
|
||||||
string FindSharedDir(Menu<Song> *menu)
|
string FindSharedDir(Menu<Song> *menu)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -52,9 +52,12 @@ template <typename A, typename B> std::string StringPairToString(const std::pair
|
|||||||
return pair.first;
|
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
|
#ifdef HAVE_TAGLIB_H
|
||||||
std::string FindSharedDir(Menu<MPD::Song> *);
|
std::string FindSharedDir(Menu<MPD::Song> *);
|
||||||
|
|||||||
Reference in New Issue
Block a user