mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
Everywhere: Run clang-format
This commit is contained in:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -67,7 +67,7 @@ void KeymapSwitcher::next_keymap()
|
|||
|
||||
dbgln("Current system keymap: {}", current_keymap_name);
|
||||
|
||||
auto it = m_keymaps.find_if([&](const auto& enumerator) {
|
||||
auto it = m_keymaps.find_if([&](auto const& enumerator) {
|
||||
return enumerator == current_keymap_name;
|
||||
});
|
||||
|
||||
|
@ -102,7 +102,7 @@ String KeymapSwitcher::get_current_keymap() const
|
|||
void KeymapSwitcher::setkeymap(const AK::String& keymap)
|
||||
{
|
||||
pid_t child_pid;
|
||||
const char* argv[] = { "/bin/keymap", "-m", keymap.characters(), nullptr };
|
||||
char const* argv[] = { "/bin/keymap", "-m", keymap.characters(), nullptr };
|
||||
if ((errno = posix_spawn(&child_pid, "/bin/keymap", nullptr, nullptr, const_cast<char**>(argv), environ))) {
|
||||
perror("posix_spawn");
|
||||
dbgln("Failed to call /bin/keymap, error: {} ({})", errno, strerror(errno));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue