summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-08-21 22:13:09 (GMT)
committerAlessandro Portale <aportale@trolltech.com>2009-08-21 22:13:09 (GMT)
commit325b704a2ecd991d2716fdb92044da3638cadd92 (patch)
tree2ae82157ef60389c2cb57c063a5ff65936121f2e /examples
parent1368cffb3f626b4f2cf9fecf57168c2efb14515b (diff)
downloadQt-325b704a2ecd991d2716fdb92044da3638cadd92.zip
Qt-325b704a2ecd991d2716fdb92044da3638cadd92.tar.gz
Qt-325b704a2ecd991d2716fdb92044da3638cadd92.tar.bz2
Fix warning about unreferenced element.
StationQuery::query is static. No need for StationQuery instance.
Diffstat (limited to 'examples')
-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 f3f124a..bf881df 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());
}