Skip to content
Snippets Groups Projects
Commit a55f2279 authored by akiraohgaki's avatar akiraohgaki
Browse files

Update qtlibs

parent cf8fea2d
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
......@@ -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);
......
......@@ -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);
......
......@@ -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));
......
......@@ -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_;
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment