1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

Run clang-format.

This commit is contained in:
Brenden Matthews 2021-04-18 11:45:29 -05:00
parent 78f46d5e6b
commit d966e8522a
No known key found for this signature in database
GPG Key ID: B49ABB7270D9D4FD

View File

@ -676,10 +676,11 @@ static void init_window(lua::state &l __attribute__((unused)), bool own) {
XClassHint classHint; XClassHint classHint;
// class_name must be a named local variable, so that c_str() remains // class_name must be a named local variable, so that c_str() remains
// valid until we call XmbSetWMProperties() or XSetClassHint. We use const_cast because, // valid until we call XmbSetWMProperties() or XSetClassHint. We use
// for whatever reason, res_name is not declared as const char *. // const_cast because, for whatever reason, res_name is not declared as
// XmbSetWMProperties hopefully doesn't modify the value (hell, even their // const char *. XmbSetWMProperties hopefully doesn't modify the value
// own example app assigns a literal string constant to the field) // (hell, even their own example app assigns a literal string constant to
// the field)
const std::string &class_name = own_window_class.get(l); const std::string &class_name = own_window_class.get(l);
classHint.res_name = const_cast<char *>(class_name.c_str()); classHint.res_name = const_cast<char *>(class_name.c_str());