~danyspin97/xdgpp

f01f810714443d0f10c333d4d1d9c0383be41375 — Danilo Spinella 1 year, 17 days ago 04e3410 master
xdg.hpp: Fix -Wreturn-std-move
1 files changed, 4 insertions(+), 4 deletions(-)

M xdg.hpp
M xdg.hpp => xdg.hpp +4 -4
@@ 128,11 128,11 @@ private:
        -> std::filesystem::path {
        const char *env_var = getenv(env_name);
        if (env_var == nullptr) {
            return default_path;
            return std::move(default_path);
        }
        auto path = std::filesystem::path{env_var};
        if (!path.is_absolute()) {
            return default_path;
            return std::move(default_path);
        }

        return path;


@@ 144,7 144,7 @@ private:
        -> std::vector<std::filesystem::path> {
        auto *env = getenv(env_name);
        if (env == nullptr) {
            return default_paths;
            return std::move(default_paths);
        }
        std::string paths{env};



@@ 167,7 167,7 @@ private:
        }

        if (dirs.empty()) {
            return default_paths;
            return std::move(default_paths);
        }

        return dirs;