diff --git a/Source/FreeImage/MultiPage.cpp b/Source/FreeImage/MultiPage.cpp index 4f2605188..8af384aff 100644 --- a/Source/FreeImage/MultiPage.cpp +++ b/Source/FreeImage/MultiPage.cpp @@ -31,6 +31,8 @@ #pragma warning (disable : 4786) // identifier was truncated to 'number' characters #endif +#include + #include "CacheFile.h" #include "FreeImageIO.h" #include "Plugin.h" @@ -271,8 +273,8 @@ FreeImage_OpenMultiBitmap(FREE_IMAGE_FORMAT fif, const char *filename, BOOL crea } } - std::auto_ptr bitmap (new FIMULTIBITMAP); - std::auto_ptr header (new MULTIBITMAPHEADER); + std::unique_ptr bitmap (new FIMULTIBITMAP); + std::unique_ptr header (new MULTIBITMAPHEADER); header->m_filename = filename; // io is default header->node = node; @@ -337,8 +339,8 @@ FreeImage_OpenMultiBitmapFromHandle(FREE_IMAGE_FORMAT fif, FreeImageIO *io, fi_h PluginNode *node = list->FindNodeFromFIF(fif); if (node) { - std::auto_ptr bitmap (new FIMULTIBITMAP); - std::auto_ptr header (new MULTIBITMAPHEADER); + std::unique_ptr bitmap (new FIMULTIBITMAP); + std::unique_ptr header (new MULTIBITMAPHEADER); header->io = *io; header->node = node; header->fif = fif;