From cbdc72995e3a3f8ce6fe0629eaace2b29e328653 Mon Sep 17 00:00:00 2001 From: heck Date: Wed, 29 Sep 2021 17:24:33 +0200 Subject: [PATCH] formatting only / doc --- src/std_utils.cc | 6 +++--- src/std_utils.hh | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/std_utils.cc b/src/std_utils.cc index d32c8d3..5209f8c 100644 --- a/src/std_utils.cc +++ b/src/std_utils.cc @@ -101,7 +101,7 @@ namespace pEp { } } - std::string path_dirname(std::string const& f) + std::string path_dirname(std::string const &f) { if (f.empty()) return f; @@ -123,12 +123,12 @@ namespace pEp { return std::string(f.c_str(), len); } - std::string path_get_abs(const std::string& path) + std::string path_get_abs(const std::string &path) { std::string ret{ path }; if (path[0] != '/') { char cwd[2048]; - char const* res = getcwd(cwd, sizeof(cwd)); + char const *res = getcwd(cwd, sizeof(cwd)); if (res == nullptr) { throw std::runtime_error( "failed to get current working directory: " + std::string(strerror(errno))); diff --git a/src/std_utils.hh b/src/std_utils.hh index c2033b6..03c5291 100644 --- a/src/std_utils.hh +++ b/src/std_utils.hh @@ -65,7 +65,7 @@ namespace pEp { std::vector dir_list_files(const std::string &dirname); #endif - //String formatting + //String tools std::string padTo(const std::string &str, const size_t num, const char paddingChar); std::string clip(const std::string &str, const size_t len); std::string tldr(const std::string &str, const size_t len);