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:
authorSergey Yershov <syershov@maps.me>2019-06-11 16:54:43 +0300
committerVlad Mihaylenko <vxmihaylenko@gmail.com>2019-06-11 17:43:48 +0300
commit191cc0b0f9336d8c4537e289cad055ea76f07401 (patch)
treebb208a74da732c6669956f4db9c0afcf78bbf8fe /platform
parentf61d9e459f2bf83fb6dd00a7da504925e1dd3b15 (diff)
[generator] Fix build with Xcode
Diffstat (limited to 'platform')
-rw-r--r--platform/http_user_agent_ios.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/http_user_agent_ios.mm b/platform/http_user_agent_ios.mm
index 022b604b6c..db166c7147 100644
--- a/platform/http_user_agent_ios.mm
+++ b/platform/http_user_agent_ios.mm
@@ -7,6 +7,6 @@ namespace platform
std::string HttpUserAgent::ExtractAppVersion() const
{
NSString * str = NSBundle.mainBundle.infoDictionary[@"CFBundleShortVersionString"];
- return std::string(str.UTF8String);
+ return str ? std::string(str.UTF8String) : std::string("Unknown");
}
} // platform