diff --git a/plugins/windows-notification/api/include/ginvoke.hpp b/plugins/windows-notification/api/include/ginvoke.hpp index b1e7aacb..469b74c0 100644 --- a/plugins/windows-notification/api/include/ginvoke.hpp +++ b/plugins/windows-notification/api/include/ginvoke.hpp @@ -68,10 +68,10 @@ inline auto &describe_argument(OStream &s, const wchar_t * const a) = delete; // TODO: handle wide strings maybe template -inline impl::varstring describe_arguments(const Arg &...a) noexcept try +inline impl::varstring describe_arguments(const Arg &... a) noexcept try { std::ostringstream ss; - ((describe_argument(ss,a)<<','), ...); + ((describe_argument(ss,a) << ','), ...); auto s = std::move(ss).str(); s.pop_back(); return {s}; @@ -84,7 +84,7 @@ catch (...) #define FORMAT "%s(%s) failed: %s" template -inline void log_invocation_failure(const char *e, const char *func_name, const Arg &...a) noexcept +inline void log_invocation_failure(const char *e, const char *func_name, const Arg &... a) noexcept { const auto args = describe_arguments(a...); g_warning(FORMAT, func_name, args.c_str(), e); @@ -99,7 +99,7 @@ inline void log_invocation_failure_desc(const char* e, const char* e_desc, const template -inline gboolean try_invoke(const char *func_name, Invokable &&i, const Arg &...a) noexcept try +inline gboolean try_invoke(const char *func_name, Invokable &&i, const Arg &... a) noexcept try { return std::invoke(std::forward(i), a...); } diff --git a/plugins/windows-notification/api/include/make_array.hpp b/plugins/windows-notification/api/include/make_array.hpp index ff4a9dc7..cf7cdf35 100644 --- a/plugins/windows-notification/api/include/make_array.hpp +++ b/plugins/windows-notification/api/include/make_array.hpp @@ -7,7 +7,7 @@ template inline auto make_array(const char (&from_literal)[N]) noexcept { - static_assert( N ); + static_assert(N); std::array a; std::copy(+from_literal, from_literal+a.size(), a.begin()); return a; diff --git a/plugins/windows-notification/api/include/overload.hpp b/plugins/windows-notification/api/include/overload.hpp index c0da3cf6..902852b5 100644 --- a/plugins/windows-notification/api/include/overload.hpp +++ b/plugins/windows-notification/api/include/overload.hpp @@ -4,7 +4,7 @@ template struct overload : Callable... { - overload( Callable &&...c ) : Callable{std::move(c)}... {} - using Callable::operator()...; + overload(Callable &&... c) : Callable{std::move(c)}... {} + using Callable::operator()...; }; #endif diff --git a/plugins/windows-notification/api/src/shortcutcreator.cpp b/plugins/windows-notification/api/src/shortcutcreator.cpp index eaa1a443..0412769c 100644 --- a/plugins/windows-notification/api/src/shortcutcreator.cpp +++ b/plugins/windows-notification/api/src/shortcutcreator.cpp @@ -21,14 +21,14 @@ namespace dyn if (mod) return mod; const win32_error e{}; - g_warning("failed to load %s", dbgnym ); + g_warning("failed to load %s", dbgnym); throw e; } template inline T &load_symbol( const wchar_t *const mod_path, const char *const mod_dbgnym, - const char *const symbol ) + const char *const symbol) { const auto p = reinterpret_cast( ::GetProcAddress(load_module(mod_path, mod_dbgnym), symbol));