From 1368cffb3f626b4f2cf9fecf57168c2efb14515b Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Sat, 22 Aug 2009 00:12:48 +0200 Subject: Fix warning about unreferenced element. TimeQuery::query is static. No need for TimeQuery instance. --- examples/xmlpatterns/trafficinfo/mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 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(); } -- cgit v0.12