refactor: make shared_qobject_ptr ctor explicit
This turns issues like creating two shared ptrs from a single raw ptr from popping up at runtime, instead making them a compile error. Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
5186ad95d3
commit
29f7ea752f
63 changed files with 301 additions and 287 deletions
|
@ -679,7 +679,7 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
|
|||
|
||||
// initialize network access and proxy setup
|
||||
{
|
||||
m_network = new QNetworkAccessManager();
|
||||
m_network.reset(new QNetworkAccessManager());
|
||||
QString proxyTypeStr = settings()->get("ProxyType").toString();
|
||||
QString addr = settings()->get("ProxyAddr").toString();
|
||||
int port = settings()->get("ProxyPort").value<qint16>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue