From 68272383fa278a30b6b43908850b8ae23754b31b Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Wed, 10 Mar 2010 21:18:03 +0100 Subject: [PATCH] make conversion functions inline --- src/setting.hh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/setting.hh b/src/setting.hh index 038e7ba7..b9baebd0 100644 --- a/src/setting.hh +++ b/src/setting.hh @@ -65,7 +65,8 @@ namespace conky { struct lua_traits { static const lua::Type type = lua::TNUMBER; - static std::pair convert(lua::state &l, int index, const std::string &) + static inline std::pair + convert(lua::state &l, int index, const std::string &) { return {l.tointeger(index), true}; } }; @@ -74,7 +75,8 @@ namespace conky { struct lua_traits { static const lua::Type type = lua::TNUMBER; - static std::pair convert(lua::state &l, int index, const std::string &) + static inline std::pair + convert(lua::state &l, int index, const std::string &) { return {l.tonumber(index), true}; } }; @@ -83,7 +85,8 @@ namespace conky { struct lua_traits { static const lua::Type type = lua::TSTRING; - static std::pair convert(lua::state &l, int index, const std::string &) + static inline std::pair + convert(lua::state &l, int index, const std::string &) { return {l.tostring(index), true}; } }; @@ -92,7 +95,8 @@ namespace conky { struct lua_traits { static const lua::Type type = lua::TBOOLEAN; - static std::pair convert(lua::state &l, int index, const std::string &) + static inline std::pair + convert(lua::state &l, int index, const std::string &) { return {l.toboolean(index), true}; } };