From 2cdb03ae0f4277891f8f42b21771dbcab5ef3192 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 16 Jul 2015 00:02:37 +0300 Subject: libnt_path_converter: code style --- utils/libnt_path_converter/src/device.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'utils/libnt_path_converter/src/device.cpp') diff --git a/utils/libnt_path_converter/src/device.cpp b/utils/libnt_path_converter/src/device.cpp index 3da4533..386b63f 100644 --- a/utils/libnt_path_converter/src/device.cpp +++ b/utils/libnt_path_converter/src/device.cpp @@ -32,18 +32,19 @@ namespace libnt_path_converter const auto in_buf = src.c_str(); const auto in_buf_size = (src.size() + 1) * sizeof(wchar_t); - DWORD nbreq = get_required_output_size( + const auto nbreq = get_required_output_size( control_code, in_buf, in_buf_size); std::vector output(nbreq); - send_control_code(control_code, - in_buf, - in_buf_size, - output.data(), - nbreq); + send_control_code( + control_code, + in_buf, + in_buf_size, + output.data(), + nbreq); return reinterpret_cast(output.data()); } -- cgit v1.2.3