mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-10 09:01:55 -07:00
core: make most for loops use const references (#7527)
why not let the compiler optimise things for us at hyprspeeds when we can.
This commit is contained in:
@@ -81,7 +81,7 @@ CFunctionHook::SAssembly CFunctionHook::fixInstructionProbeRIPCalls(const SInstr
|
||||
std::vector<char> finalBytes;
|
||||
finalBytes.resize(probe.len);
|
||||
|
||||
for (auto& len : probe.insSizes) {
|
||||
for (auto const& len : probe.insSizes) {
|
||||
|
||||
// copy original bytes to our finalBytes
|
||||
for (size_t i = 0; i < len; ++i) {
|
||||
|
Reference in New Issue
Block a user