From 4a9347fa320d892b60fd03082925f63a1d69cfb9 Mon Sep 17 00:00:00 2001 From: Takeshi Abe <tabe@fixedpoint.jp> Date: Tue, 25 Feb 2014 16:30:23 +0900 Subject: Replace deprecated std::auto_ptr with boost::scoped_ptr Change-Id: I8e11ffe888aac8887c4c0875c41de51f343debae --- shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell') diff --git a/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx b/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx index 45918f5f5d81..ea02c7d20322 100644 --- a/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx +++ b/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx @@ -43,7 +43,7 @@ #if defined _MSC_VER #pragma warning(pop) #endif -#include <memory> +#include <boost/scoped_ptr.hpp> extern HINSTANCE g_hModule; @@ -357,7 +357,7 @@ HRESULT STDMETHODCALLTYPE CThumbviewer::Extract(HBITMAP *phBmpImage) try { std::wstring fname = getShortPathName( filename_ ); - std::auto_ptr<ZipFile> zipfile( new ZipFile( WStringToString( fname ) ) ); + boost::scoped_ptr<ZipFile> zipfile( new ZipFile( WStringToString( fname ) ) ); if (zipfile->HasContent(THUMBNAIL_CONTENT)) { -- cgit