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:
authorExMix <rahuba.youri@mapswithme.com>2013-05-31 18:30:45 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:55:58 +0300
commitc9324a88ab18055f085662c7e9dd7c68dc89eb81 (patch)
tree04cc8aadfe9d24260edf5d925fa2242dcd9c2de5 /map/address_finder.cpp
parent4a1a41715ddf2759aaccf3f5d8acaa3191b19cb8 (diff)
after review fixes
Diffstat (limited to 'map/address_finder.cpp')
-rw-r--r--map/address_finder.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/map/address_finder.cpp b/map/address_finder.cpp
index 8f82df12ae..c0f65492af 100644
--- a/map/address_finder.cpp
+++ b/map/address_finder.cpp
@@ -576,10 +576,7 @@ string Framework::AddressInfo::GetPinName() const
string Framework::AddressInfo::GetPinType() const
{
char const * type = GetBestType();
- if (type)
- return string(type);
-
- return "";
+ return (type ? type : "");
}
string Framework::AddressInfo::FormatPinText() const