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>2012-07-30 08:28:56 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:41:31 +0300
commit4ecc0e465926c663e629837bb9c0b05f78674c61 (patch)
tree1a47842dd2a25b9031ac766124c95bc249198a2c /search/result.cpp
parentb9910335d969a8192fa8d5cf8947507409ff505d (diff)
[search] Assign feature type to name if name is empty.
Diffstat (limited to 'search/result.cpp')
-rw-r--r--search/result.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/search/result.cpp b/search/result.cpp
index 661b3a6b4a..8ae7ea1cd8 100644
--- a/search/result.cpp
+++ b/search/result.cpp
@@ -14,7 +14,10 @@ Result::Result(string const & str, string const & region,
{
// Features with empty names can be found after suggestion.
if (m_str.empty())
- m_str = "-";
+ {
+ //m_str = "-";
+ m_str = type;
+ }
}
Result::Result(string const & str, string const & suggestionStr)