From 3b1e4bbb3df6a0de8aa0693038449c6f0359ce91 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 23 Jan 2024 10:13:00 +0900 Subject: Replace auto_ptr Signed-off-by: Michele Calgaro (cherry picked from commit d2f343cc239e1fa25c9581cf35bada96692c41db) --- indexlib/create.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'indexlib/create.h') diff --git a/indexlib/create.h b/indexlib/create.h index e865728e8..18e9929b3 100644 --- a/indexlib/create.h +++ b/indexlib/create.h @@ -57,14 +57,14 @@ namespace indexlib { * This will return something like "new quotes(basename)" but by using this, you do not need to include quotes.h * which needs boost headers also. */ - std::auto_ptr create( const char* basename, index_type::type flags = index_type::quotes ); + std::unique_ptr create( const char* basename, index_type::type flags = index_type::quotes ); namespace open_flags { enum type { none = 0, create_ifile = index_type::ifile, create_quotes = index_type::quotes, fail_if_nonexistant }; } - std::auto_ptr open( const char* basename, unsigned flags = open_flags::fail_if_nonexistant ); + std::unique_ptr open( const char* basename, unsigned flags = open_flags::fail_if_nonexistant ); /** * Removes the index. -- cgit v1.2.1