Mercurial > code
changeset 585:55f57b45a898
Xdg: reduce column limit
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 20 Jul 2016 17:09:20 +0200 |
parents | 166183fa7f91 |
children | c702063a80f8 |
files | modules/xdg/xdg.hpp |
diffstat | 1 files changed, 10 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/modules/xdg/xdg.hpp Wed Jul 20 17:07:59 2016 +0200 +++ b/modules/xdg/xdg.hpp Wed Jul 20 17:09:20 2016 +0200 @@ -37,7 +37,8 @@ * * Read and get XDG directories. * - * This file should compiles on Windows to facilitate portability but its functions must not be used. + * This file should compiles on Windows to facilitate portability but its + * functions must not be used. */ class Xdg { private: @@ -82,7 +83,8 @@ return value; } - std::vector<std::string> listOrDefaults(const std::string &var, const std::vector<std::string> &list) const + std::vector<std::string> listOrDefaults(const std::string &var, + const std::vector<std::string> &list) const { auto value = std::getenv(var.c_str()); @@ -111,8 +113,8 @@ m_dataDirs = listOrDefaults("XDG_DATA_DIRS", { "/usr/local/share", "/usr/share" }); /* - * Runtime directory is a special case and does not have a replacement, the application should manage - * this by itself. + * Runtime directory is a special case and does not have a replacement, + * the application should manage this by itself. */ auto runtime = std::getenv("XDG_RUNTIME_DIR"); if (runtime && isabsolute(runtime)) @@ -152,8 +154,8 @@ /** * Get the runtime directory. * - * There is no replacement for XDG_RUNTIME_DIR, if it is not set, an empty valus is returned and the user is - * responsible of using something else. + * There is no replacement for XDG_RUNTIME_DIR, if it is not set, an empty + * value is returned and the user is responsible of using something else. * * \return the runtime directory */ @@ -173,7 +175,8 @@ } /** - * Get the data directories. ${XDG_DATA_DIRS} or { "/usr/local/share", "/usr/share" } + * Get the data directories. ${XDG_DATA_DIRS} or { "/usr/local/share", + * "/usr/share" } * * \return the list of data directories */