diff options
author | Alessandro Portale <aportale@trolltech.com> | 2009-08-21 22:12:48 (GMT) |
---|---|---|
committer | Alessandro Portale <aportale@trolltech.com> | 2009-08-21 22:12:48 (GMT) |
commit | 1368cffb3f626b4f2cf9fecf57168c2efb14515b (patch) | |
tree | 7e75dc3594968846aa1715b2c42688889c6a3c41 | |
parent | e7846417ed95faacde38d229f66ac2725ba05c47 (diff) | |
download | Qt-1368cffb3f626b4f2cf9fecf57168c2efb14515b.zip Qt-1368cffb3f626b4f2cf9fecf57168c2efb14515b.tar.gz Qt-1368cffb3f626b4f2cf9fecf57168c2efb14515b.tar.bz2 |
Fix warning about unreferenced element.
TimeQuery::query is static. No need for TimeQuery instance.
-rw-r--r-- | examples/xmlpatterns/trafficinfo/mainwindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/xmlpatterns/trafficinfo/mainwindow.cpp b/examples/xmlpatterns/trafficinfo/mainwindow.cpp index 9016d52..4b4886b 100644 --- a/examples/xmlpatterns/trafficinfo/mainwindow.cpp +++ b/examples/xmlpatterns/trafficinfo/mainwindow.cpp @@ -165,8 +165,7 @@ void MainWindow::resizeEvent(QResizeEvent*) void MainWindow::updateTimeInformation() { - TimeQuery query; - m_times = query.query(m_station.id(), m_lines, QDateTime::currentDateTime()); + m_times = TimeQuery::query(m_station.id(), m_lines, QDateTime::currentDateTime()); update(); } |