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
This commit is contained in:
parent
7c43eed2c1
commit
5b714f05f8
14 changed files with 59 additions and 57 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue