From 168607829d54cf4bc1b0e5749fb396ca402f05af Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Sun, 24 Jan 2021 08:44:28 -0600 Subject: [PATCH] Apply a few minor formatting fixes. --- src/logging.h | 8 ++++---- src/luamm.hh | 4 ++-- src/update-cb.hh | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/logging.h b/src/logging.h index 927a0053..92dd5c07 100644 --- a/src/logging.h +++ b/src/logging.h @@ -65,7 +65,7 @@ void clean_up(void *memtofree1, void *memtofree2); void clean_up_without_threads(void *memtofree1, void *memtofree2); template -inline void gettextize_format(const char *format, Args &&... args) { +inline void gettextize_format(const char *format, Args &&...args) { fprintf(stderr, _(format), args...); } @@ -74,7 +74,7 @@ inline void gettextize_format(const char *format, Args &&... args) { inline void gettextize_format(const char *format) { fputs(_(format), stderr); } template -void NORM_ERR(const char *format, Args &&... args) { +void NORM_ERR(const char *format, Args &&...args) { fprintf(stderr, PACKAGE_NAME ": "); gettextize_format(format, args...); fputs("\n", stderr); @@ -83,7 +83,7 @@ void NORM_ERR(const char *format, Args &&... args) { /* critical error */ template inline void CRIT_ERR(void *memtofree1, void *memtofree2, const char *format, - Args &&... args) { + Args &&...args) { NORM_ERR(format, args...); clean_up(memtofree1, memtofree2); exit(EXIT_FAILURE); @@ -91,7 +91,7 @@ inline void CRIT_ERR(void *memtofree1, void *memtofree2, const char *format, template inline void THREAD_CRIT_ERR(void *memtofree1, void *memtofree2, - const char *format, Args &&... args) { + const char *format, Args &&...args) { NORM_ERR(format, args...); clean_up_without_threads(memtofree1, memtofree2); return; diff --git a/src/luamm.hh b/src/luamm.hh index e96d7ece..16472b29 100644 --- a/src/luamm.hh +++ b/src/luamm.hh @@ -312,7 +312,7 @@ class state : private std::mutex { // allocate a new lua userdata of appropriate size, and create a object in it // pushes the userdata on stack and returns the pointer template - T *createuserdata(Args &&... args); + T *createuserdata(Args &&...args); using std::mutex::lock; using std::mutex::try_lock; @@ -365,7 +365,7 @@ class stack_sentry { }; template -T *state::createuserdata(Args &&... args) { +T *state::createuserdata(Args &&...args) { stack_sentry s(*this); void *t = newuserdata(sizeof(T)); diff --git a/src/update-cb.hh b/src/update-cb.hh index dab4c6c6..dfb1e47a 100644 --- a/src/update-cb.hh +++ b/src/update-cb.hh @@ -42,7 +42,7 @@ template class callback_handle; void run_all_callbacks(); template -callback_handle register_cb(uint32_t period, Params &&... params); +callback_handle register_cb(uint32_t period, Params &&...params); namespace priv { class callback_base { @@ -88,7 +88,7 @@ class callback_base { template friend callback_handle conky::register_cb(uint32_t period, - Params &&... params); + Params &&...params); friend void conky::run_all_callbacks(); @@ -140,11 +140,11 @@ class callback_handle : private std::shared_ptr { friend void conky::run_all_callbacks(); template friend callback_handle register_cb(uint32_t period, - Params &&... params); + Params &&...params); }; template -callback_handle register_cb(uint32_t period, Params &&... params) { +callback_handle register_cb(uint32_t period, Params &&...params) { return std::dynamic_pointer_cast( priv::callback_base::do_register_cb(priv::callback_base::handle( new Callback(period, std::forward(params)...))));