From a55f2279dba48d32bd44027d01ae40b63805c97b Mon Sep 17 00:00:00 2001 From: Akira Ohgaki <akiraohgaki@gmail.com> Date: Wed, 16 Nov 2016 09:22:10 +0900 Subject: [PATCH] Update qtlibs --- src/libs/qtlibs/config.h | 2 +- src/libs/qtlibs/dir.h | 2 +- src/libs/qtlibs/file.h | 2 +- src/libs/qtlibs/networkresource.cpp | 6 +++--- src/libs/qtlibs/networkresource.h | 6 +++--- src/libs/qtlibs/package.h | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/libs/qtlibs/config.h b/src/libs/qtlibs/config.h index 17f0a4d..190c2c7 100644 --- a/src/libs/qtlibs/config.h +++ b/src/libs/qtlibs/config.h @@ -21,7 +21,7 @@ class Config : public QObject Q_OBJECT public: - explicit Config(const QString &configDirPath = QString(), QObject *parent = 0); + explicit Config(const QString &configDirPath = "", QObject *parent = 0); Config(const Config &other, QObject *parent = 0); Config &operator =(const Config &other); diff --git a/src/libs/qtlibs/dir.h b/src/libs/qtlibs/dir.h index ca98375..aa3dfe1 100644 --- a/src/libs/qtlibs/dir.h +++ b/src/libs/qtlibs/dir.h @@ -21,7 +21,7 @@ class Dir : public QObject Q_OBJECT public: - explicit Dir(const QString &path = QString(), QObject *parent = 0); + explicit Dir(const QString &path = "", QObject *parent = 0); Dir(const Dir &other, QObject *parent = 0); Dir &operator =(const Dir &other); diff --git a/src/libs/qtlibs/file.h b/src/libs/qtlibs/file.h index dab67a8..d9a7783 100644 --- a/src/libs/qtlibs/file.h +++ b/src/libs/qtlibs/file.h @@ -20,7 +20,7 @@ class File : public QObject Q_OBJECT public: - explicit File(const QString &path = QString(), QObject *parent = 0); + explicit File(const QString &path = "", QObject *parent = 0); File(const File &other, QObject *parent = 0); File &operator =(const File &other); diff --git a/src/libs/qtlibs/networkresource.cpp b/src/libs/qtlibs/networkresource.cpp index 1e11226..ddf879c 100644 --- a/src/libs/qtlibs/networkresource.cpp +++ b/src/libs/qtlibs/networkresource.cpp @@ -17,7 +17,7 @@ namespace qtlibs { -NetworkResource::NetworkResource(const QString &name, const QUrl &url, const bool &async, QObject *parent) +NetworkResource::NetworkResource(const QString &name, const QUrl &url, bool async, QObject *parent) : QObject(parent), name_(name), url_(url), async_(async) { setManager(new QNetworkAccessManager(this)); @@ -72,7 +72,7 @@ bool NetworkResource::async() const return async_; } -void NetworkResource::setAsync(const bool &async) +void NetworkResource::setAsync(bool async) { async_ = async; } @@ -182,7 +182,7 @@ void NetworkResource::setMethod(const QString &method) method_ = method; } -NetworkResource *NetworkResource::send(const bool &async, const QNetworkRequest &request) +NetworkResource *NetworkResource::send(bool async, const QNetworkRequest &request) { if (method() == "HEAD") { setReply(manager()->head(request)); diff --git a/src/libs/qtlibs/networkresource.h b/src/libs/qtlibs/networkresource.h index 72a3e35..1a4c73b 100644 --- a/src/libs/qtlibs/networkresource.h +++ b/src/libs/qtlibs/networkresource.h @@ -24,7 +24,7 @@ class NetworkResource : public QObject Q_OBJECT public: - explicit NetworkResource(const QString &name = QString(), const QUrl &url = QUrl(), const bool &async = true, QObject *parent = 0); + explicit NetworkResource(const QString &name = "", const QUrl &url = QUrl(), bool async = true, QObject *parent = 0); ~NetworkResource(); NetworkResource(const NetworkResource &other, QObject *parent = 0); @@ -35,7 +35,7 @@ public: QUrl url() const; void setUrl(const QUrl &url); bool async() const; - void setAsync(const bool &async); + void setAsync(bool async); QNetworkRequest request() const; void setRequest(const QNetworkRequest &request); QNetworkAccessManager *manager() const; @@ -62,7 +62,7 @@ private: void setReply(QNetworkReply *reply); void setMethod(const QString &method); - NetworkResource *send(const bool &async, const QNetworkRequest &request); + NetworkResource *send(bool async, const QNetworkRequest &request); QString name_; QUrl url_; diff --git a/src/libs/qtlibs/package.h b/src/libs/qtlibs/package.h index fd7422f..077a8cd 100644 --- a/src/libs/qtlibs/package.h +++ b/src/libs/qtlibs/package.h @@ -20,7 +20,7 @@ class Package : public QObject Q_OBJECT public: - explicit Package(const QString &path = QString(), QObject *parent = 0); + explicit Package(const QString &path = "", QObject *parent = 0); Package(const Package &other, QObject *parent = 0); Package &operator =(const Package &other); -- GitLab