auto_ptr -> unique_ptr for code with WIN_UNICODE enabled

This commit is contained in:
Luis Díaz Más 2021-04-17 17:55:12 +02:00
parent 50d5887e65
commit b5d3a1fd70

View File

@ -936,8 +936,8 @@ namespace Exiv2 {
throw WError(kerFileOpenFailed, wpath, "w+b", strError().c_str());
}
fileIo->close();
BasicIo::UniquePtr io(fileIo);
Image::UniquePtr image = create(type, io);
BasicIo::UniquePtr io(std::move(fileIo));
Image::UniquePtr image = create(type, std::move(io));
if (image.get() == 0) throw Error(kerUnsupportedImageType, type);
return image;
}