shell (Windows): std::auto_ptr -> std::unique_ptr
Change-Id: I44c843c028c2dfcfcea9f6a2196440ca700fc3a8
This commit is contained in:
parent
fb515368bd
commit
36d24bced0
@ -40,7 +40,7 @@ class ZipFile
|
||||
public:
|
||||
|
||||
typedef std::vector<std::string> Directory_t;
|
||||
typedef std::auto_ptr<Directory_t> DirectoryPtr_t;
|
||||
typedef std::unique_ptr<Directory_t> DirectoryPtr_t;
|
||||
typedef std::vector<char> ZipContentBuffer_t;
|
||||
|
||||
public:
|
||||
|
@ -55,7 +55,7 @@ typedef std::vector<statistic_group_t> statistic_group_list_t;
|
||||
|
||||
|
||||
class document_statistic_reader;
|
||||
typedef std::auto_ptr<document_statistic_reader> document_statistic_reader_ptr;
|
||||
typedef std::unique_ptr<document_statistic_reader> document_statistic_reader_ptr;
|
||||
|
||||
document_statistic_reader_ptr create_document_statistic_reader(const std::string& document_name, CMetaInfoReader* meta_info_accessor);
|
||||
|
||||
|
@ -35,7 +35,7 @@
|
||||
|
||||
|
||||
class list_view_builder;
|
||||
typedef std::auto_ptr<list_view_builder> list_view_builder_ptr;
|
||||
typedef std::unique_ptr<list_view_builder> list_view_builder_ptr;
|
||||
|
||||
// factory method for list_view_builder
|
||||
list_view_builder_ptr create_list_view_builder(
|
||||
|
@ -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 ) ) );
|
||||
std::unique_ptr<ZipFile> zipfile( new ZipFile( WStringToString( fname ) ) );
|
||||
|
||||
if (zipfile->HasContent(THUMBNAIL_CONTENT))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user