diff options
author | vng <viktor.govako@gmail.com> | 2011-10-26 13:15:32 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:26:52 +0300 |
commit | efd712903088cd5d8dd6f473ecb7a1a7fe5f6a72 (patch) | |
tree | 607ac026e90033364b9fe6724c910965359da359 /qt/search_panel.cpp | |
parent | b552c8f95d47f74fb1be6027956312f70c71ada0 (diff) |
Change 'FormatDistance' declaration - return bool as is and string as reference.
Diffstat (limited to 'qt/search_panel.cpp')
-rw-r--r-- | qt/search_panel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qt/search_panel.cpp b/qt/search_panel.cpp index d279d7fe6d..217285d349 100644 --- a/qt/search_panel.cpp +++ b/qt/search_panel.cpp @@ -136,9 +136,9 @@ void SearchPanel::OnSearchResult(ResultT * res, int queryId) m_pTable->setItem(rowCount, 0, create_item(QString::fromUtf8(res->GetFetureTypeAsString().c_str()))); - bool drawDir; - m_pTable->setItem(rowCount, 2, - create_item(MeasurementUtils::FormatDistance(res->GetDistanceFromCenter(), drawDir).c_str())); + string strDist; + bool const drawDir = MeasurementUtils::FormatDistance(res->GetDistanceFromCenter(), strDist); + m_pTable->setItem(rowCount, 2, create_item(strDist.c_str())); if (drawDir) { |