diff options
Diffstat (limited to 'src/network/kernel')
-rw-r--r-- | src/network/kernel/qhostinfo.cpp | 2 | ||||
-rw-r--r-- | src/network/kernel/qhostinfo_p.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/network/kernel/qhostinfo.cpp b/src/network/kernel/qhostinfo.cpp index 2912c6fef3..d2dc7c4850 100644 --- a/src/network/kernel/qhostinfo.cpp +++ b/src/network/kernel/qhostinfo.cpp @@ -431,7 +431,7 @@ void QHostInfo::setErrorString(const QString &str) \sa hostName() */ -QHostInfoRunnable::QHostInfoRunnable(QString hn, int i) : toBeLookedUp(hn), id(i) +QHostInfoRunnable::QHostInfoRunnable(const QString &hn, int i) : toBeLookedUp(hn), id(i) { setAutoDelete(true); } diff --git a/src/network/kernel/qhostinfo_p.h b/src/network/kernel/qhostinfo_p.h index 5400b18b37..74cfe2a9aa 100644 --- a/src/network/kernel/qhostinfo_p.h +++ b/src/network/kernel/qhostinfo_p.h @@ -145,7 +145,7 @@ private: class QHostInfoRunnable : public QRunnable { public: - QHostInfoRunnable (QString hn, int i); + QHostInfoRunnable(const QString &hn, int i); void run() Q_DECL_OVERRIDE; QString toBeLookedUp; |