Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvng <viktor.govako@gmail.com>2011-10-26 13:15:32 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:26:52 +0300
commitefd712903088cd5d8dd6f473ecb7a1a7fe5f6a72 (patch)
tree607ac026e90033364b9fe6724c910965359da359 /qt/search_panel.cpp
parentb552c8f95d47f74fb1be6027956312f70c71ada0 (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.cpp6
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)
{