diff options
author | Ikalco <[email protected]> | 2024-12-18 19:56:01 -0600 |
---|---|---|
committer | GitHub <[email protected]> | 2024-12-19 02:56:01 +0100 |
commit | 5b714f05f87831e3e930af04649f853d5efb9902 (patch) | |
tree | 6a84cc910bcd00daaa94df98c6c13c6fbd6dfdbc /src/managers | |
parent | 7c43eed2c1e6c56ab56d1bded4a6701b5598b1c3 (diff) | |
download | Hyprland-5b714f05f87831e3e930af04649f853d5efb9902.tar.gz Hyprland-5b714f05f87831e3e930af04649f853d5efb9902.zip |
internal: Make static analysis more happy (#8767)
* make functions used in 1 file static
* fix invalid substr param -1
* give default initializer to borderGradier
* move RASSERT from printf to std::print
Diffstat (limited to 'src/managers')
-rw-r--r-- | src/managers/AnimationManager.cpp | 2 | ||||
-rw-r--r-- | src/managers/KeybindManager.cpp | 4 | ||||
-rw-r--r-- | src/managers/ThreadManager.cpp | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp index c8f7ecdf..e3309282 100644 --- a/src/managers/AnimationManager.cpp +++ b/src/managers/AnimationManager.cpp @@ -10,7 +10,7 @@ #include <hyprgraphics/color/Color.hpp> -int wlTick(SP<CEventLoopTimer> self, void* data) { +static int wlTick(SP<CEventLoopTimer> self, void* data) { if (g_pAnimationManager) g_pAnimationManager->onTicked(); diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index fec608f1..e1ad7d60 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -299,7 +299,7 @@ bool CKeybindManager::ensureMouseBindState() { return false; } -void updateRelativeCursorCoords() { +static void updateRelativeCursorCoords() { static auto PNOWARPS = CConfigValue<Hyprlang::INT>("cursor:no_warps"); if (*PNOWARPS) @@ -1095,7 +1095,7 @@ SDispatchResult CKeybindManager::toggleActivePseudo(std::string args) { return {}; } -SWorkspaceIDName getWorkspaceToChangeFromArgs(std::string args, PHLWORKSPACE PCURRENTWORKSPACE) { +static SWorkspaceIDName getWorkspaceToChangeFromArgs(std::string args, PHLWORKSPACE PCURRENTWORKSPACE) { if (!args.starts_with("previous")) { return getWorkspaceIDNameFromString(args); } diff --git a/src/managers/ThreadManager.cpp b/src/managers/ThreadManager.cpp index ce15688d..bd124c99 100644 --- a/src/managers/ThreadManager.cpp +++ b/src/managers/ThreadManager.cpp @@ -3,7 +3,7 @@ #include "../Compositor.hpp" #include "../config/ConfigValue.hpp" -int handleTimer(void* data) { +static int handleTimer(void* data) { const auto PTM = (CThreadManager*)data; static auto PDISABLECFGRELOAD = CConfigValue<Hyprlang::INT>("misc:disable_autoreload"); |