From 00105cec703cd2d8dc52a6c16cb6249d0e49b4bf Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Mon, 24 Oct 2016 08:16:10 +0900 Subject: [PATCH] Fix initialize order --- src/core/config.cpp | 2 +- src/core/network.cpp | 2 +- src/handlers/xdgurl.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/config.cpp b/src/core/config.cpp index 0bcccff..f844df5 100644 --- a/src/core/config.cpp +++ b/src/core/config.cpp @@ -6,7 +6,7 @@ namespace core { Config::Config(const QString &configsDir, QObject *parent) : - configsDir_(configsDir), QObject(parent) + QObject(parent), configsDir_(configsDir) {} QJsonObject Config::get(const QString &name) diff --git a/src/core/network.cpp b/src/core/network.cpp index 7680359..b7c9f93 100644 --- a/src/core/network.cpp +++ b/src/core/network.cpp @@ -8,7 +8,7 @@ namespace core { Network::Network(const bool &async, QObject *parent) : - async_(async), QObject(parent) + QObject(parent), async_(async) { manager_ = new QNetworkAccessManager(this); connect(manager_, &QNetworkAccessManager::finished, diff --git a/src/handlers/xdgurl.cpp b/src/handlers/xdgurl.cpp index 1b1f5b9..00e3690 100644 --- a/src/handlers/xdgurl.cpp +++ b/src/handlers/xdgurl.cpp @@ -14,7 +14,7 @@ namespace handlers { XdgUrl::XdgUrl(const QString &xdgUrl, core::Config *config, core::Network *network, QObject *parent) : - xdgUrl_(xdgUrl), config_(config), network_(network), QObject(parent) + QObject(parent), xdgUrl_(xdgUrl), config_(config), network_(network) { parse(); loadDestinations(); -- GitLab