From be45a2c1596d4cb748e0afbdc1c46ad36ad198b6 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 21 Oct 2020 04:35:46 +0300 Subject: code style --- src/pipe.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/pipe.cpp') diff --git a/src/pipe.cpp b/src/pipe.cpp index a00a8f6..f809995 100644 --- a/src/pipe.cpp +++ b/src/pipe.cpp @@ -17,8 +17,8 @@ namespace winapi { namespace { void create_pipe(Handle& read_end, Handle& write_end) { - HANDLE h_read_end = INVALID_HANDLE_VALUE; - HANDLE h_write_end = INVALID_HANDLE_VALUE; + HANDLE read_end_impl = INVALID_HANDLE_VALUE; + HANDLE write_end_impl = INVALID_HANDLE_VALUE; SECURITY_ATTRIBUTES attributes; std::memset(&attributes, 0, sizeof(attributes)); @@ -27,14 +27,14 @@ void create_pipe(Handle& read_end, Handle& write_end) { BOOST_STATIC_CONSTEXPR DWORD buffer_size = 16 * 1024; - const auto ret = ::CreatePipe(&h_read_end, &h_write_end, &attributes, buffer_size); + const auto ret = ::CreatePipe(&read_end_impl, &write_end_impl, &attributes, buffer_size); if (!ret) { throw error::windows(GetLastError(), "CreatePipe"); } - read_end = Handle{h_read_end}; - write_end = Handle{h_write_end}; + read_end = Handle{read_end_impl}; + write_end = Handle{write_end_impl}; } } // namespace -- cgit v1.2.3