summaryrefslogtreecommitdiffstats
path: root/examples/xmlpatterns
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-08-21 22:12:48 (GMT)
committerAlessandro Portale <aportale@trolltech.com>2009-08-21 22:12:48 (GMT)
commit1368cffb3f626b4f2cf9fecf57168c2efb14515b (patch)
tree7e75dc3594968846aa1715b2c42688889c6a3c41 /examples/xmlpatterns
parente7846417ed95faacde38d229f66ac2725ba05c47 (diff)
downloadQt-1368cffb3f626b4f2cf9fecf57168c2efb14515b.zip
Qt-1368cffb3f626b4f2cf9fecf57168c2efb14515b.tar.gz
Qt-1368cffb3f626b4f2cf9fecf57168c2efb14515b.tar.bz2
Fix warning about unreferenced element.
TimeQuery::query is static. No need for TimeQuery instance.
Diffstat (limited to 'examples/xmlpatterns')
-rw-r--r--examples/xmlpatterns/trafficinfo/mainwindow.cpp3
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();
}