Skip to content

Commit

Permalink
clang formatting, add nolint to suppress performance-unnecessary-valu…
Browse files Browse the repository at this point in the history
…e-param warnings
  • Loading branch information
zjeffer committed May 12, 2024
1 parent 9befbe8 commit edb4fd7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ void mapWorkspacesToMonitors()
std::vector<std::string> workspaceRules;
writeWorkspaceRules(workspaceRules); // clear the file first
for (auto& monitor : g_pCompositor->m_vMonitors) {
if (monitor->isMirror())
{
if (monitor->isMirror()) {
Debug::log(INFO, "[split-monitor-workspaces] Skipping mirrored monitor {}", monitor->szName);
continue;
}
Expand Down Expand Up @@ -271,12 +270,12 @@ void mapWorkspacesToMonitors()
HyprlandAPI::reloadConfig();
}

void refreshMapping(void* /*unused*/, SCallbackInfo& /*unused*/, std::any /*unused*/)
void refreshMapping(void* /*unused*/, SCallbackInfo& /*unused*/, std::any /*unused*/) // NOLINT(performance-unnecessary-value-param)
{
mapWorkspacesToMonitors();
}

void configReloadedCallback(void* /*unused*/, SCallbackInfo& /*unused*/, std::any /*unused*/)
void configReloadedCallback(void* /*unused*/, SCallbackInfo& /*unused*/, std::any /*unused*/) // NOLINT(performance-unnecessary-value-param)
{
// anything you call in this function should not reload the config, as it will cause an infinite loop
Debug::log(INFO, "[split-monitor-workspaces] Config reloaded");
Expand Down

0 comments on commit edb4fd7

Please sign in to comment.