From 9b67d89c24666d405dd00e63bb56c924738aa002 Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Fri, 23 Jan 2015 13:05:12 +0400 Subject: Pass params of shareable type by const-ref rather than by value ...where passing them by value was not intentional. Change-Id: Ifd5036d57b41fddeeacfbd3f5890881605b80647 Reviewed-by: Shawn Rutledge Reviewed-by: Thiago Macieira --- src/network/kernel/qhostinfo_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/network/kernel/qhostinfo_p.h') 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; -- cgit v1.2.3