Replace auto_ptr

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/7/head
Michele Calgaro 10 months ago
parent eeecdda1a3
commit b117d960b8
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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()

Loading…
Cancel
Save