diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/apt.cpp | 4 | ||||
-rw-r--r-- | src/apt.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/apt.cpp b/src/apt.cpp index f81fbbe..99b753f 100644 --- a/src/apt.cpp +++ b/src/apt.cpp @@ -222,7 +222,7 @@ TQString AptProtocol::make_html_form() const AptProtocol::AptProtocol( const TQCString &pool_socket, const TQCString &app_socket ) : SlaveBase( "tdeio_apt", pool_socket, app_socket ), - m_adept_batch(0), m_parser(0) + m_adept_batch(0), m_parser() { TDEStandardDirs* dirs = TDEGlobal::dirs(); @@ -257,7 +257,7 @@ TQString AptProtocol::header_background() const { return m_header_background; } void AptProtocol::token_dispatch(const TQString& name, const TQString& val) { - if (m_parser.get()) + if (m_parser) (*m_parser)(this, name, val); } @@ -85,7 +85,7 @@ private slots: void token_dispatch(const TQString& tag, const TQString& value); private: - std::auto_ptr<Parsers::Parser> m_parser; + std::unique_ptr<Parsers::Parser> m_parser; /** apt-cache search * Performs apt-cache search, with the query encoded in url.query() |