Skip to content

Commit 47c33c6

Browse files
committed
Use fully qualified types consistently in FileBuffer constructor
1 parent 8da2510 commit 47c33c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

io/nativefilestream.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ NativeFileStream::FileBuffer::FileBuffer(const char *path, ios_base::openmode op
196196
if (handle == INVALID_HANDLE_VALUE) {
197197
throw std::ios_base::failure("CreateFileW failed", std::error_code(static_cast<int>(GetLastError()), std::system_category()));
198198
}
199-
buffer = make_unique<StreamBuffer>(handle, boost::iostreams::close_handle);
200-
// if we wanted to open assign the descriptor as well: descriptor = _open_osfhandle(reinterpret_cast<intptr_t>(handle), nativeParams.flags);
199+
buffer = std::make_unique<StreamBuffer>(handle, boost::iostreams::close_handle);
200+
// if we wanted to open assign the descriptor as well: descriptor = _open_osfhandle(reinterpret_cast<std::intptr_t>(handle), nativeParams.flags);
201201
#else
202202
descriptor = ::open(path, nativeParams.openFlags, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
203203
if (descriptor == -1) {

0 commit comments

Comments
 (0)