1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-26 04:17:33 +00:00

Two more formatting fixes.

This commit is contained in:
Brenden Matthews 2021-01-24 09:08:29 -06:00
parent 617e9f14a2
commit 0f99ff0bca
No known key found for this signature in database
GPG Key ID: B49ABB7270D9D4FD

View File

@ -101,7 +101,7 @@ template <typename T>
class register_data_source {
template <typename... Args>
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)));
l->insert(1);
new (t) T(l, name, args...);
@ -113,7 +113,7 @@ class register_data_source {
public:
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(
name,
std::bind(&factory<Args...>, std::placeholders::_1, name, args...));