summaryrefslogtreecommitdiffstats
path: root/examples/xmlpatterns
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-08-22 00:13:09 +0200
committerAlessandro Portale <aportale@trolltech.com>2009-08-22 00:13:09 +0200
commit325b704a2ecd991d2716fdb92044da3638cadd92 (patch)
tree2ae82157ef60389c2cb57c063a5ff65936121f2e /examples/xmlpatterns
parent1368cffb3f626b4f2cf9fecf57168c2efb14515b (diff)
Fix warning about unreferenced element.
StationQuery::query is static. No need for StationQuery instance.
Diffstat (limited to 'examples/xmlpatterns')
-rw-r--r--examples/xmlpatterns/trafficinfo/stationdialog.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/xmlpatterns/trafficinfo/stationdialog.cpp b/examples/xmlpatterns/trafficinfo/stationdialog.cpp
index f3f124a7f2..bf881df813 100644
--- a/examples/xmlpatterns/trafficinfo/stationdialog.cpp
+++ b/examples/xmlpatterns/trafficinfo/stationdialog.cpp
@@ -157,8 +157,6 @@ QStringList StationDialog::lineNumbers() const
void StationDialog::searchStations()
{
- StationQuery query;
-
- m_model->setStations(query.query(m_ui.m_input->text()));
+ m_model->setStations(StationQuery::query(m_ui.m_input->text()));
m_ui.m_view->keyboardSearch(m_ui.m_input->text());
}