This fixes the following g++-5 warning:
pv/dialogs/about.hpp:51:7: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
std::auto_ptr<QTextDocument> supportedDoc;
s.append("</table>");
- supportedDoc.reset(new QTextDocument(this));
+ supportedDoc = new QTextDocument(this);
supportedDoc->setHtml(s);
- ui->supportList->setDocument(supportedDoc.get());
+ ui->supportList->setDocument(supportedDoc);
}
About::~About()
private:
Ui::About *ui;
- std::auto_ptr<QTextDocument> supportedDoc;
+ QTextDocument *supportedDoc;
};
} // namespace dialogs