summaryrefslogtreecommitdiffstats
path: root/indexlib/result.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-23 10:13:00 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-26 11:05:01 +0900
commit3b1e4bbb3df6a0de8aa0693038449c6f0359ce91 (patch)
tree068068e7b1b6202c635bd655e346f838d715373c /indexlib/result.h
parentb0f8eef013163b2098c2bb07e93cb9b194338b80 (diff)
downloadtdepim-3b1e4bbb3df6a0de8aa0693038449c6f0359ce91.tar.gz
tdepim-3b1e4bbb3df6a0de8aa0693038449c6f0359ce91.zip
Replace auto_ptr
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit d2f343cc239e1fa25c9581cf35bada96692c41db)
Diffstat (limited to 'indexlib/result.h')
-rw-r--r--indexlib/result.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/indexlib/result.h b/indexlib/result.h
index 4cad40d74..dd23f25d2 100644
--- a/indexlib/result.h
+++ b/indexlib/result.h
@@ -42,7 +42,7 @@ struct simple_result : indexlib::result {
simple_result( std::vector<unsigned> r ):res( r ) { }
std::vector<unsigned> list() const { return res; }
- std::auto_ptr<result> search( const char* ) { return std::auto_ptr<result>( 0 ); }
+ std::unique_ptr<result> search( const char* ) { return std::unique_ptr<result>(); }
private:
std::vector<unsigned> res;
};
@@ -50,7 +50,7 @@ struct simple_result : indexlib::result {
struct empty_result : indexlib::result {
public:
std::vector<unsigned> list() const { return std::vector<unsigned>(); }
- std::auto_ptr<result> search( const char* ) { return std::auto_ptr<result>(); }
+ std::unique_ptr<result> search( const char* ) { return std::unique_ptr<result>(); }
};
} //namespace detail
} //namespace indexlib