From d5a68a1a60694ea1d9e13dc5bf04bb018f1e1dc1 Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Thu, 12 Mar 2009 19:29:38 +0100 Subject: [PATCH] make Keypressed() funcion inline --- src/helpers.cpp | 5 ----- src/helpers.h | 7 +++++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/helpers.cpp b/src/helpers.cpp index 4c1df9d0..e1b1cab9 100644 --- a/src/helpers.cpp +++ b/src/helpers.cpp @@ -224,11 +224,6 @@ void UpdateSongList(Menu *menu) menu->Refresh(); } -bool Keypressed(int in, const int *key) -{ - return in == key[0] || in == key[1]; -} - #ifdef HAVE_TAGLIB_H string FindSharedDir(Menu *menu) { diff --git a/src/helpers.h b/src/helpers.h index 69726a80..327590bf 100644 --- a/src/helpers.h +++ b/src/helpers.h @@ -52,9 +52,12 @@ template std::string StringPairToString(const std::pair return pair.first; } -void UpdateSongList(Menu *); +inline bool Keypressed(int in, const int *key) +{ + return in == key[0] || in == key[1]; +} -bool Keypressed(int, const int *); +void UpdateSongList(Menu *); #ifdef HAVE_TAGLIB_H std::string FindSharedDir(Menu *);