aboutsummaryrefslogtreecommitdiff
path: root/src/environment.hpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2018-12-08 10:43:50 +0100
committerFelix Morgner <felix.morgner@gmail.com>2018-12-08 10:43:50 +0100
commit0c1d1a0f24655c22a373c19aac90a6a225a353e6 (patch)
treee65fe3c5f8b80bb59910c81c700eb3ed545848bb /src/environment.hpp
parentf22d1b76c9a957a679b57ddcb67b33cc73a15de1 (diff)
downloadwanda-0c1d1a0f24655c22a373c19aac90a6a225a353e6.tar.xz
wanda-0c1d1a0f24655c22a373c19aac90a6a225a353e6.zip
wanda: reformat source code
Diffstat (limited to 'src/environment.hpp')
-rw-r--r--src/environment.hpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/environment.hpp b/src/environment.hpp
index a6322cb..1b5bd80 100644
--- a/src/environment.hpp
+++ b/src/environment.hpp
@@ -8,19 +8,18 @@
namespace wanda
{
-
-struct environment
-{
+ struct environment
+ {
using map_type = std::map<std::string, std::string>;
using iterator = map_type::iterator;
using const_iterator = map_type::const_iterator;
using reference = map_type::reference;
using const_reference = map_type::const_reference;
- explicit environment(char const *const *env = ::environ);
+ explicit environment(char const * const * env = ::environ);
- std::string &operator[](std::string const &variable);
- std::string const &operator[](std::string const &variable) const;
+ std::string & operator[](std::string const & variable);
+ std::string const & operator[](std::string const & variable) const;
iterator begin();
const_iterator begin() const;
@@ -32,8 +31,8 @@ struct environment
private:
map_type m_cache{};
-};
+ };
-} // namespace wanda
+} // namespace wanda
#endif \ No newline at end of file