From 4e738329bcc25b5fc733de8a859fa951a56ddc5b Mon Sep 17 00:00:00 2001 From: Ben Mayer Date: Tue, 30 Jul 2024 13:20:11 +0000 Subject: [PATCH] lib: fix some stylistic errors --- libhyprcursor/hyprcursor.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/libhyprcursor/hyprcursor.cpp b/libhyprcursor/hyprcursor.cpp index d724139..2cffe4c 100644 --- a/libhyprcursor/hyprcursor.cpp +++ b/libhyprcursor/hyprcursor.cpp @@ -17,17 +17,16 @@ using namespace Hyprcursor; static std::vector getSystemThemeDirs() { - char* envXdgData = std::getenv("XDG_DATA_DIRS"); + const auto envXdgData = std::getenv("XDG_DATA_DIRS"); std::vector 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 result = {"/usr/share/icons"}; - } + } else + result = {"/usr/share/icons"}; + return result; }