mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-26 12:27:52 +00:00
Two more formatting fixes.
This commit is contained in:
parent
617e9f14a2
commit
0f99ff0bca
@ -101,7 +101,7 @@ template <typename T>
|
|||||||
class register_data_source {
|
class register_data_source {
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
static int factory(lua::state *l, const std::string &name,
|
static int factory(lua::state *l, const std::string &name,
|
||||||
const Args &... args) {
|
const Args &...args) {
|
||||||
T *t = static_cast<T *>(l->newuserdata(sizeof(T)));
|
T *t = static_cast<T *>(l->newuserdata(sizeof(T)));
|
||||||
l->insert(1);
|
l->insert(1);
|
||||||
new (t) T(l, name, args...);
|
new (t) T(l, name, args...);
|
||||||
@ -113,7 +113,7 @@ class register_data_source {
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
template <typename... Args>
|
template <typename... Args>
|
||||||
explicit register_data_source(const std::string &name, Args &&... args) {
|
explicit register_data_source(const std::string &name, Args &&...args) {
|
||||||
priv::do_register_data_source(
|
priv::do_register_data_source(
|
||||||
name,
|
name,
|
||||||
std::bind(&factory<Args...>, std::placeholders::_1, name, args...));
|
std::bind(&factory<Args...>, std::placeholders::_1, name, args...));
|
||||||
|
Loading…
Reference in New Issue
Block a user