diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2013-05-31 18:30:45 +0400 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 01:55:58 +0300 |
commit | c9324a88ab18055f085662c7e9dd7c68dc89eb81 (patch) | |
tree | 04cc8aadfe9d24260edf5d925fa2242dcd9c2de5 /map/address_finder.cpp | |
parent | 4a1a41715ddf2759aaccf3f5d8acaa3191b19cb8 (diff) |
after review fixes
Diffstat (limited to 'map/address_finder.cpp')
-rw-r--r-- | map/address_finder.cpp | 5 |
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 |