mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-30 03:13:48 -07:00
refactor: use std::ranges whenever possible (#10584)
This commit is contained in:
@@ -186,7 +186,7 @@ void CCursorManager::setCursorFromName(const std::string& name) {
|
||||
if (m_currentCursorShapeData.images.size() < 1) {
|
||||
// try with '_' first (old hc, etc)
|
||||
std::string newName = name;
|
||||
std::replace(newName.begin(), newName.end(), '-', '_');
|
||||
std::ranges::replace(newName, '-', '_');
|
||||
|
||||
m_currentCursorShapeData = m_hyprcursor->getShape(newName.c_str(), m_currentStyleInfo);
|
||||
}
|
||||
|
Reference in New Issue
Block a user