tst_QTimeZone::printTimeZone: pass zone by reference

It's a const parameter, so no sense copying it.

Change-Id: I4a673a6a60af9bfe7cb61ce28de2aa295fa1d069
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Edward Welbourne 2016-10-14 17:25:58 +02:00
parent c237a8d76f
commit 3ce6b1e578
1 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@ private slots:
void winTest();
private:
void printTimeZone(const QTimeZone tz);
void printTimeZone(const QTimeZone &tz);
#ifdef QT_BUILD_INTERNAL
void testCetPrivate(const QTimeZonePrivate &tzp);
#endif // QT_BUILD_INTERNAL
@ -72,7 +72,7 @@ tst_QTimeZone::tst_QTimeZone()
{
}
void tst_QTimeZone::printTimeZone(const QTimeZone tz)
void tst_QTimeZone::printTimeZone(const QTimeZone &tz)
{
QDateTime now = QDateTime::currentDateTime();
QDateTime jan = QDateTime(QDate(2012, 1, 1), QTime(0, 0, 0), Qt::UTC);