diff options
author | Michele Calgaro <[email protected]> | 2024-01-23 10:13:00 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-01-26 11:05:01 +0900 |
commit | 3b1e4bbb3df6a0de8aa0693038449c6f0359ce91 (patch) | |
tree | 068068e7b1b6202c635bd655e346f838d715373c /libksieve | |
parent | b0f8eef013163b2098c2bb07e93cb9b194338b80 (diff) | |
download | tdepim-3b1e4bbb3df6a0de8aa0693038449c6f0359ce91.tar.gz tdepim-3b1e4bbb3df6a0de8aa0693038449c6f0359ce91.zip |
Replace auto_ptr
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit d2f343cc239e1fa25c9581cf35bada96692c41db)
Diffstat (limited to 'libksieve')
-rw-r--r-- | libksieve/parser/lexer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libksieve/parser/lexer.cpp b/libksieve/parser/lexer.cpp index 4b0ebf4f1..0213f7d7f 100644 --- a/libksieve/parser/lexer.cpp +++ b/libksieve/parser/lexer.cpp @@ -42,7 +42,7 @@ #include <tqstringlist.h> #include <tqtextcodec.h> -#include <memory> // std::auto_ptr +#include <memory> #include <assert.h> #include <ctype.h> // isdigit @@ -618,8 +618,8 @@ namespace KSieve { const TQTextCodec * const codec = TQTextCodec::codecForMib( 106 ); // UTF-8 assert( codec ); - const std::auto_ptr<TQTextDecoder> dec( codec->makeDecoder() ); - assert( dec.get() ); + const std::unique_ptr<TQTextDecoder> dec( codec->makeDecoder() ); + assert( dec ); while ( !atEnd() ) switch ( *mState.cursor ) { |