Fix nltool build on CWG 1579-noncompliant compilers (nw)

This commit is contained in:
AJR 2020-06-18 16:46:11 -04:00
parent 7bb325c78f
commit a58685ec6d

View File

@ -201,7 +201,7 @@ public:
stream_ptr stream(const pstring &file) override
{
pstring name = m_folder + "/" + file;
auto strm(std::make_unique<plib::ifstream>(plib::filesystem::u8path(name)));
stream_ptr strm(std::make_unique<plib::ifstream>(plib::filesystem::u8path(name)));
if (strm->fail())
return stream_ptr(nullptr);