mirror of
https://github.com/hyprwm/hyprcursor.git
synced 2025-12-24 22:20:02 +01:00
lib: fix some stylistic errors
This commit is contained in:
parent
fb40ac08f8
commit
4e738329bc
1 changed files with 5 additions and 6 deletions
|
|
@ -17,17 +17,16 @@
|
|||
using namespace Hyprcursor;
|
||||
|
||||
static std::vector<std::string> getSystemThemeDirs() {
|
||||
char* envXdgData = std::getenv("XDG_DATA_DIRS");
|
||||
const auto envXdgData = std::getenv("XDG_DATA_DIRS");
|
||||
std::vector<std::string> result;
|
||||
if (envXdgData) {
|
||||
std::stringstream envXdgStream(envXdgData);
|
||||
std::string tmpStr;
|
||||
while (getline(envXdgStream, tmpStr, ':')) {
|
||||
while (getline(envXdgStream, tmpStr, ':'))
|
||||
result.push_back((tmpStr + "/icons"));
|
||||
}
|
||||
} else {
|
||||
std::vector<std::string> result = {"/usr/share/icons"};
|
||||
}
|
||||
} else
|
||||
result = {"/usr/share/icons"};
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue