summaryrefslogtreecommitdiffstats
path: root/indexlib/tokenizer.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-23 10:13:00 +0900
committerMichele Calgaro <[email protected]>2024-01-26 11:05:01 +0900
commit3b1e4bbb3df6a0de8aa0693038449c6f0359ce91 (patch)
tree068068e7b1b6202c635bd655e346f838d715373c /indexlib/tokenizer.cpp
parentb0f8eef013163b2098c2bb07e93cb9b194338b80 (diff)
downloadtdepim-3b1e4bbb3df6a0de8aa0693038449c6f0359ce91.tar.gz
tdepim-3b1e4bbb3df6a0de8aa0693038449c6f0359ce91.zip
Replace auto_ptr
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit d2f343cc239e1fa25c9581cf35bada96692c41db)
Diffstat (limited to 'indexlib/tokenizer.cpp')
-rw-r--r--indexlib/tokenizer.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indexlib/tokenizer.cpp b/indexlib/tokenizer.cpp
index b069c7482..1c1243a7f 100644
--- a/indexlib/tokenizer.cpp
+++ b/indexlib/tokenizer.cpp
@@ -294,7 +294,7 @@ class latin1_tokenizer : public indexlib::detail::tokenizer {
}
-std::auto_ptr<indexlib::detail::tokenizer> indexlib::detail::get_tokenizer( std::string name ) {
- if ( name == "latin-1:european" ) return std::auto_ptr<indexlib::detail::tokenizer>( new latin1_tokenizer );
- return std::auto_ptr<indexlib::detail::tokenizer>( 0 );
+std::unique_ptr<indexlib::detail::tokenizer> indexlib::detail::get_tokenizer( std::string name ) {
+ if ( name == "latin-1:european" ) return std::unique_ptr<indexlib::detail::tokenizer>( new latin1_tokenizer );
+ return std::unique_ptr<indexlib::detail::tokenizer>();
}