From 36d24bced0ea5fcbbd380b15e9d1a813fbef32cf Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 2 Oct 2014 15:20:54 +0200 Subject: shell (Windows): std::auto_ptr -> std::unique_ptr Change-Id: I44c843c028c2dfcfcea9f6a2196440ca700fc3a8 --- shell/inc/internal/zipfile.hxx | 2 +- shell/source/win32/shlxthandler/propsheets/document_statistic.hxx | 2 +- shell/source/win32/shlxthandler/propsheets/listviewbuilder.hxx | 2 +- shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'shell') diff --git a/shell/inc/internal/zipfile.hxx b/shell/inc/internal/zipfile.hxx index 15a900174419..a2e369c5f403 100644 --- a/shell/inc/internal/zipfile.hxx +++ b/shell/inc/internal/zipfile.hxx @@ -40,7 +40,7 @@ class ZipFile public: typedef std::vector Directory_t; - typedef std::auto_ptr DirectoryPtr_t; + typedef std::unique_ptr DirectoryPtr_t; typedef std::vector ZipContentBuffer_t; public: diff --git a/shell/source/win32/shlxthandler/propsheets/document_statistic.hxx b/shell/source/win32/shlxthandler/propsheets/document_statistic.hxx index 1216f4af2a79..45a747784600 100644 --- a/shell/source/win32/shlxthandler/propsheets/document_statistic.hxx +++ b/shell/source/win32/shlxthandler/propsheets/document_statistic.hxx @@ -55,7 +55,7 @@ typedef std::vector statistic_group_list_t; class document_statistic_reader; -typedef std::auto_ptr document_statistic_reader_ptr; +typedef std::unique_ptr document_statistic_reader_ptr; document_statistic_reader_ptr create_document_statistic_reader(const std::string& document_name, CMetaInfoReader* meta_info_accessor); diff --git a/shell/source/win32/shlxthandler/propsheets/listviewbuilder.hxx b/shell/source/win32/shlxthandler/propsheets/listviewbuilder.hxx index 68078f048e9c..870c33c1dd87 100644 --- a/shell/source/win32/shlxthandler/propsheets/listviewbuilder.hxx +++ b/shell/source/win32/shlxthandler/propsheets/listviewbuilder.hxx @@ -35,7 +35,7 @@ class list_view_builder; -typedef std::auto_ptr list_view_builder_ptr; +typedef std::unique_ptr list_view_builder_ptr; // factory method for list_view_builder list_view_builder_ptr create_list_view_builder( diff --git a/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx b/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx index 45918f5f5d81..8c62836fbadb 100644 --- a/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx +++ b/shell/source/win32/shlxthandler/thumbviewer/thumbviewer.cxx @@ -357,7 +357,7 @@ HRESULT STDMETHODCALLTYPE CThumbviewer::Extract(HBITMAP *phBmpImage) try { std::wstring fname = getShortPathName( filename_ ); - std::auto_ptr zipfile( new ZipFile( WStringToString( fname ) ) ); + std::unique_ptr zipfile( new ZipFile( WStringToString( fname ) ) ); if (zipfile->HasContent(THUMBNAIL_CONTENT)) { -- cgit