1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-18 13:55:11 -05:00

fix(build): Explicit type for list initialization

This commit is contained in:
Michael Carlberg 2016-11-20 23:29:42 +01:00
parent c6d85b2b92
commit 002eb08b20
3 changed files with 6 additions and 6 deletions

View file

@ -11,15 +11,15 @@ POLYBAR_NS
* Message types
*/
struct ipc_command {
static constexpr auto prefix{"cmd:"};
static constexpr const char* prefix{"cmd:"};
string payload;
};
struct ipc_hook {
static constexpr auto prefix{"hook:"};
static constexpr const char* prefix{"hook:"};
string payload;
};
struct ipc_action {
static constexpr auto prefix{"action:"};
static constexpr const char* prefix{"action:"};
string payload;
};

View file

@ -20,7 +20,7 @@ ipc::~ipc() {
if (!m_fifo.empty()) {
m_log.info("Interrupting ipc message receiver");
auto f{make_unique<file_util::file_ptr>(m_fifo)};
auto f = make_unique<file_util::file_ptr>(m_fifo);
char p[1]{'q'};
fwrite(p, sizeof(char), sizeof(p), (*f)());

View file

@ -20,8 +20,8 @@ window window::create_checked(int16_t x, int16_t y, uint16_t w, uint16_t h, uint
*this = conn.generate_id();
}
auto root{conn.screen()->root};
auto copy{XCB_COPY_FROM_PARENT};
auto root = conn.screen()->root;
auto copy = XCB_COPY_FROM_PARENT;
uint32_t values[16]{0};
xutils::pack_values(mask, p, values);
conn.create_window_checked(copy, *this, root, x, y, w, h, 0, copy, copy, mask, values);