mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 10:35:10 +00:00
Run clang-format.
This commit is contained in:
parent
78f46d5e6b
commit
d966e8522a
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user