diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-04-27 15:15:08 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-04-27 15:15:08 -0600 |
commit | e51a757720ade58e48128730134400cf12f54851 (patch) | |
tree | 3322f65c4d1006355942e4617de4f6f8eb0d049d /src | |
parent | 1ff42722ce44f485c7dfabc6bb370494080f2755 (diff) |
astyle format
Diffstat (limited to 'src')
-rw-r--r-- | src/libutil/error.hh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh index e33b1d3d6..b715c3e45 100644 --- a/src/libutil/error.hh +++ b/src/libutil/error.hh @@ -24,7 +24,8 @@ namespace nix { using std::list; using std::vector; -typedef enum { +typedef enum +{ lvlError = 0, lvlWarn, lvlInfo, @@ -52,7 +53,7 @@ struct ErrPos template <class P> ErrPos(const P &p) { - *this = p; + *this = p; } }; @@ -87,7 +88,7 @@ protected: string prefix_; // used for location traces etc. ErrorInfo err; string what_; - void initWhat() + void initWhat() { std::ostringstream oss; oss << err; @@ -106,7 +107,7 @@ public: template<typename... Args> BaseError(const Args & ... args) - : err { .level = lvlError, + : err { .level = lvlError, .hint = hintfmt(args...) } { initWhat(); } @@ -146,7 +147,7 @@ public: template<typename... Args> SysError(const Args & ... args) : Error(args...) // TODO addErrNo for hintfmt - // : Error(addErrno(hintfmt(args...))) + // : Error(addErrno(hintfmt(args...))) { } private: |