1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 21:49:07 +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;
// 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,
// for whatever reason, res_name is not declared as const char *.
// XmbSetWMProperties hopefully doesn't modify the value (hell, even their
// own example app assigns a literal string constant to the field)
// valid until we call XmbSetWMProperties() or XSetClassHint. We use
// const_cast because, for whatever reason, res_name is not declared as
// const char *. XmbSetWMProperties hopefully doesn't modify the value
// (hell, even their own example app assigns a literal string constant to
// the field)
const std::string &class_name = own_window_class.get(l);
classHint.res_name = const_cast<char *>(class_name.c_str());