diff options
author | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-05-30 19:06:32 +0900 |
---|---|---|
committer | Kazumasa Mitsunari <knimitz@witz-inc.co.jp> | 2018-05-30 19:06:32 +0900 |
commit | dfe4aee045113eceaeabd327291f94583e7b13d3 (patch) | |
tree | 745826e7154c4d08606456dcef68716e64c70b81 /src/util.cpp | |
parent | 5d91a5ffe0bc614ee79a18818dadf5836ce038d7 (diff) |
Format source codes
Change-Id: I28e99487b814b23fe99aa6bc8ec4538af3940acf
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/util.cpp b/src/util.cpp index 2ae856f..19d590e 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -26,14 +26,17 @@ #ifdef SCOPE_TRACING thread_local int ScopeTrace::indent = 0; -ScopeTrace::ScopeTrace(char const *func) : f(func) { - fprintf(stderr, "%lu %*s%s -->\n", pthread_self(), 2 * indent++, "", this->f); +ScopeTrace::ScopeTrace(char const *func) : f(func) +{ + fprintf(stderr, "%lu %*s%s -->\n", pthread_self(), 2 * indent++, "", this->f); } ScopeTrace::~ScopeTrace() { fprintf(stderr, "%lu %*s%s <--\n", pthread_self(), 2 * --indent, "", this->f); } #endif -unique_fd::~unique_fd() { - if (this->fd != -1) { - close(this->fd); - } +unique_fd::~unique_fd() +{ + if (this->fd != -1) + { + close(this->fd); + } } |