diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/error.cpp | 6 | ||||
| -rw-r--r-- | src/process_io.cpp | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/error.cpp b/src/error.cpp index afc33f3..7266e63 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -14,8 +14,7 @@ #include <string_view> #include <system_error> -namespace winapi { -namespace error { +namespace winapi::error { namespace { std::wstring trim_trailing_newline(std::wstring_view s) { @@ -64,5 +63,4 @@ std::system_error windows(DWORD code, const char* function) { static_cast<int32_t>(code), category_windows(), build_what(code, function)}; } -} // namespace error -} // namespace winapi +} // namespace winapi::error diff --git a/src/process_io.cpp b/src/process_io.cpp index 1162049..dd227b3 100644 --- a/src/process_io.cpp +++ b/src/process_io.cpp @@ -11,8 +11,7 @@ #include <string_view> #include <utility> -namespace winapi { -namespace process { +namespace winapi::process { Stdin::Stdin() : Stream{Handle::std_in()} {} @@ -50,5 +49,4 @@ void IO::close() { std_err.handle.close(); } -} // namespace process -} // namespace winapi +} // namespace winapi::process |
